1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00

openldap: Adjust to systemd

This commit is contained in:
Rickard Nilsson 2013-04-09 17:50:53 +02:00
parent 0ccc107300
commit c59761e994

View file

@ -43,19 +43,15 @@ in
environment.systemPackages = [ openldap ];
jobs.openldap =
{
description = "LDAP server";
startOn = "filesystem";
daemonType = "fork";
preStart =
''
mkdir -p /var/run/slapd
'';
exec = "${openldap}/libexec/slapd -f ${configFile}";
};
systemd.services.openldap = {
description = "LDAP server";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
preStart = ''
mkdir -p /var/run/slapd
'';
serviceConfig.ExecStart = "${openldap}/libexec/slapd -d 0 -f ${configFile}";
};
};