3
0
Fork 0
forked from mirrors/nixpkgs

nixos/slurm: update systemd service for slurmd

Adjust according to upstream recommendation
This commit is contained in:
Markus Kowalewski 2022-05-29 17:17:01 +02:00
parent 8d325054af
commit b6020f42a5
No known key found for this signature in database
GPG key ID: D865C8A91D7025EB

View file

@ -361,8 +361,13 @@ in
++ lib.optional cfg.enableSrunX11 slurm-spank-x11;
wantedBy = [ "multi-user.target" ];
after = [ "systemd-tmpfiles-clean.service" ];
requires = [ "network.target" ];
after = [
"systemd-tmpfiles-clean.service"
"munge.service"
"network-online.target"
"remote-fs.target"
];
wants = [ "network-online.target" ];
serviceConfig = {
Type = "forking";
@ -371,6 +376,7 @@ in
PIDFile = "/run/slurmd.pid";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
LimitMEMLOCK = "infinity";
Delegate="Yes";
};
};