treewide: ensure ExecReload kill fields has absolute path (#453135)

This commit is contained in:
Sandro
2025-10-21 15:08:46 +00:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -390,7 +390,7 @@ in
serviceConfig = rec {
WorkingDirectory = cfg.dir;
ExecReload = "kill -HUP $MAINPID";
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -HUP $MAINPID";
Restart = "always";
User = cfg.user;
StandardOutput = mkIf (cfg.logFile != null) "append:${cfg.logFile}";

View File

@@ -130,7 +130,7 @@ in
open_web_calendar.app:app
'';
EnvironmentFile = settingsFormat.generate "open-web-calendar.env" cfg.settings;
ExecReload = "kill -s HUP $MAINPID";
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -s HUP $MAINPID";
KillMode = "mixed";
PrivateTmp = true;
RuntimeDirectory = "open-web-calendar";

View File

@@ -374,7 +374,7 @@ in
--bind='unix:///run/weblate.socket' \
weblate.wsgi
'';
ExecReload = "kill -s HUP $MAINPID";
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -s HUP $MAINPID";
KillMode = "mixed";
PrivateTmp = true;
WorkingDirectory = dataDir;

View File

@@ -166,7 +166,7 @@ in
serviceConfig = {
Type = "notify";
ExecStart = "${cfg.package}/bin/crio";
ExecReload = "/bin/kill -s HUP $MAINPID";
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -s HUP $MAINPID";
TasksMax = "infinity";
LimitNOFILE = "1048576";
LimitNPROC = "1048576";