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:
parent
b2b221d533
commit
0ccc107300
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue