3
0
Fork 0
forked from mirrors/nixpkgs

nixos/slurm: set slurmd KillMode to process

The default of systemd is to kill the
the whole cgroup of a service. For slurmd
this means that all running jobs get killed
as well whenever the configuration is updated (and activated).

To avoid this behaviour we set "KillMode=process"
to kill only slurmd on reload. This is how
slurm configures the systemd service.

See:
https://bugs.schedmd.com/show_bug.cgi?id=2095#c24
508f866ea1
This commit is contained in:
Markus Kowalewski 2018-11-06 13:04:42 +01:00 committed by Markus Kowalewski
parent 0e98312b72
commit ae93ed0f0d
No known key found for this signature in database
GPG key ID: D865C8A91D7025EB

View file

@ -303,6 +303,7 @@ in
serviceConfig = {
Type = "forking";
KillMode = "process";
ExecStart = "${wrappedSlurm}/bin/slurmd";
PIDFile = "/run/slurmd.pid";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";