3
0
Fork 0
forked from mirrors/nixpkgs

nixos/ldap: restart nslcd when configuration changes

This commit is contained in:
Aaron Andersen 2020-09-26 09:07:54 -04:00
parent f6cd17269e
commit d89aff670a

View file

@ -276,7 +276,12 @@ in
} >"$conf" } >"$conf"
mv -fT "$conf" /run/nslcd/nslcd.conf mv -fT "$conf" /run/nslcd/nslcd.conf
''; '';
restartTriggers = [ "/run/nslcd/nslcd.conf" ];
restartTriggers = [
nslcdConfig
cfg.bind.passwordFile
cfg.daemon.rootpwmodpwFile
];
serviceConfig = { serviceConfig = {
ExecStart = "${nslcdWrapped}/bin/nslcd"; ExecStart = "${nslcdWrapped}/bin/nslcd";