Skip to content

Commit

Permalink
nixos/nscd: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarvstedt committed Oct 18, 2021
1 parent 2aaeeba commit e664795
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nixos/modules/services/system/nscd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ in
environment.etc."nscd.conf".text = cfg.config;

systemd.services.nscd =
{ description = "Name Service Cache Daemon";
{
description = "Name Service Cache Daemon";

wantedBy = [ "nss-lookup.target" "nss-user-lookup.target" ];

Expand All @@ -67,14 +68,16 @@ in
# files. So prefix the ExecStart command with "!" to prevent systemd
# from dropping privileges early. See ExecStart in systemd.service(5).
serviceConfig =
{ ExecStart = "!@${nscd}/sbin/nscd nscd";
{
ExecStart = "!@${nscd}/sbin/nscd nscd";
Type = "forking";
DynamicUser = true;
RuntimeDirectory = "nscd";
PIDFile = "/run/nscd/nscd.pid";
Restart = "always";
ExecReload =
[ "${nscd}/sbin/nscd --invalidate passwd"
[
"${nscd}/sbin/nscd --invalidate passwd"
"${nscd}/sbin/nscd --invalidate group"
"${nscd}/sbin/nscd --invalidate hosts"
];
Expand Down

0 comments on commit e664795

Please sign in to comment.