nixos/munge: run in foreground instead of using pidfile

Confuse systemd less
This commit is contained in:
Someone Serge 2023-12-17 22:15:27 +00:00
parent b29d689e3a
commit 515a26d997
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4

View File

@ -58,9 +58,7 @@ in
serviceConfig = {
ExecStartPre = "+${pkgs.coreutils}/bin/chmod 0400 ${cfg.password}";
ExecStart = "${pkgs.munge}/bin/munged --syslog --key-file ${cfg.password}";
PIDFile = "/run/munge/munged.pid";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
ExecStart = "${pkgs.munge}/bin/munged --foreground --key-file ${cfg.password}";
User = "munge";
Group = "munge";
StateDirectory = "munge";