1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

nslcd: Start after network.target (but don't require network)

This commit is contained in:
Rickard Nilsson 2013-04-09 19:20:09 +02:00
parent b2b221d533
commit 0ccc107300

View file

@ -223,9 +223,9 @@ mkIf cfg.enable {
systemd.services = mkIf cfg.daemon.enable {
nslcd = {
wantedBy = [ "nss-user-lookup.target" ];
before = [ "nss-user-lookup.target" ];
after = [ "network.target" ];
path = [ nss_pam_ldapd ];
preStart = ''
mkdir -p /run/nslcd
rm -f /run/nslcd/nslcd.pid;
@ -237,9 +237,8 @@ mkIf cfg.enable {
''}
'';
script = "nslcd";
serviceConfig = {
ExecStart = "${nss_pam_ldapd}/sbin/nslcd";
Type = "forking";
PIDFile = "/run/nslcd/nslcd.pid";
Restart = "always";