nixos/nslcd: use systemd's RuntimeDirectory
This commit is contained in:
parent
4af7db9c73
commit
eb90d97009
@ -232,9 +232,6 @@ in
|
|||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p /run/nslcd
|
|
||||||
rm -f /run/nslcd/nslcd.pid;
|
|
||||||
chown nslcd.nslcd /run/nslcd
|
|
||||||
${optionalString (cfg.bind.distinguishedName != "") ''
|
${optionalString (cfg.bind.distinguishedName != "") ''
|
||||||
if test -s "${cfg.bind.password}" ; then
|
if test -s "${cfg.bind.password}" ; then
|
||||||
ln -sfT "${cfg.bind.password}" /run/nslcd/bindpw
|
ln -sfT "${cfg.bind.password}" /run/nslcd/bindpw
|
||||||
@ -254,6 +251,7 @@ in
|
|||||||
Type = "forking";
|
Type = "forking";
|
||||||
PIDFile = "/run/nslcd/nslcd.pid";
|
PIDFile = "/run/nslcd/nslcd.pid";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
|
RuntimeDirectory = [ "nslcd" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user