mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
openldap: Adjust to systemd
This commit is contained in:
parent
0ccc107300
commit
c59761e994
|
@ -43,19 +43,15 @@ in
|
||||||
|
|
||||||
environment.systemPackages = [ openldap ];
|
environment.systemPackages = [ openldap ];
|
||||||
|
|
||||||
jobs.openldap =
|
systemd.services.openldap = {
|
||||||
{
|
description = "LDAP server";
|
||||||
description = "LDAP server";
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = [ "network.target" ];
|
||||||
startOn = "filesystem";
|
preStart = ''
|
||||||
daemonType = "fork";
|
mkdir -p /var/run/slapd
|
||||||
|
'';
|
||||||
preStart =
|
serviceConfig.ExecStart = "${openldap}/libexec/slapd -d 0 -f ${configFile}";
|
||||||
''
|
};
|
||||||
mkdir -p /var/run/slapd
|
|
||||||
'';
|
|
||||||
exec = "${openldap}/libexec/slapd -f ${configFile}";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue