kerberos-server: switch to ExecStart

script causes problems for forking services like MIT Kerberos.
This commit is contained in:
Kai Wohlfahrt 2017-11-08 10:01:33 +00:00 committed by Kai Wohlfahrt
parent 4f9af77287
commit fe8f2b8813

View File

@ -27,7 +27,7 @@ in
environment.systemPackages = [ pkgs.heimdalFull ]; environment.systemPackages = [ pkgs.heimdalFull ];
systemd.services.kadmind = { systemd.services.kadmind = {
description = "Kerberos Administration Daemon"; description = "Kerberos Administration Daemon";
script = "${pkgs.heimdalFull}/libexec/heimdal/kadmind"; serviceConfig.ExecStart = "${pkgs.heimdalFull}/libexec/heimdal/kadmind";
}; };
systemd.services.kdc = { systemd.services.kdc = {
@ -36,13 +36,13 @@ in
preStart = '' preStart = ''
mkdir -m 0755 -p ${stateDir} mkdir -m 0755 -p ${stateDir}
''; '';
script = "${pkgs.heimdalFull}/libexec/heimdal/kdc"; serviceConfig.ExecStart = "${pkgs.heimdalFull}/libexec/heimdal/kdc";
}; };
systemd.services.kpasswdd = { systemd.services.kpasswdd = {
description = "Kerberos Password Changing daemon"; description = "Kerberos Password Changing daemon";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
script = "${pkgs.heimdalFull}/libexec/heimdal/kpasswdd"; serviceConfig.ExecStart = "${pkgs.heimdalFull}/libexec/heimdal/kpasswdd";
}; };
}; };
} }