From a01862a4b621c43ba69286482734ecfc2071d34a Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Fri, 8 Aug 2014 17:40:03 +0200 Subject: [PATCH] nslcd nixos service: Should be wantedBy multi-user, otherwise not started if activated on running server (only starts on bootup) --- nixos/modules/config/ldap.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix index 7fcb1aaf63d..1a01533c585 100644 --- a/nixos/modules/config/ldap.nix +++ b/nixos/modules/config/ldap.nix @@ -217,9 +217,7 @@ in systemd.services = mkIf cfg.daemon.enable { nslcd = { - wantedBy = [ "nss-user-lookup.target" ]; - before = [ "nss-user-lookup.target" ]; - after = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; preStart = '' mkdir -p /run/nslcd