treewide: ensure ExecReload kill fields has absolute path (#453135)
This commit is contained in:
@@ -390,7 +390,7 @@ in
|
|||||||
|
|
||||||
serviceConfig = rec {
|
serviceConfig = rec {
|
||||||
WorkingDirectory = cfg.dir;
|
WorkingDirectory = cfg.dir;
|
||||||
ExecReload = "kill -HUP $MAINPID";
|
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -HUP $MAINPID";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
StandardOutput = mkIf (cfg.logFile != null) "append:${cfg.logFile}";
|
StandardOutput = mkIf (cfg.logFile != null) "append:${cfg.logFile}";
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ in
|
|||||||
open_web_calendar.app:app
|
open_web_calendar.app:app
|
||||||
'';
|
'';
|
||||||
EnvironmentFile = settingsFormat.generate "open-web-calendar.env" cfg.settings;
|
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";
|
KillMode = "mixed";
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
RuntimeDirectory = "open-web-calendar";
|
RuntimeDirectory = "open-web-calendar";
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ in
|
|||||||
--bind='unix:///run/weblate.socket' \
|
--bind='unix:///run/weblate.socket' \
|
||||||
weblate.wsgi
|
weblate.wsgi
|
||||||
'';
|
'';
|
||||||
ExecReload = "kill -s HUP $MAINPID";
|
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -s HUP $MAINPID";
|
||||||
KillMode = "mixed";
|
KillMode = "mixed";
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
WorkingDirectory = dataDir;
|
WorkingDirectory = dataDir;
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStart = "${cfg.package}/bin/crio";
|
ExecStart = "${cfg.package}/bin/crio";
|
||||||
ExecReload = "/bin/kill -s HUP $MAINPID";
|
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -s HUP $MAINPID";
|
||||||
TasksMax = "infinity";
|
TasksMax = "infinity";
|
||||||
LimitNOFILE = "1048576";
|
LimitNOFILE = "1048576";
|
||||||
LimitNPROC = "1048576";
|
LimitNPROC = "1048576";
|
||||||
|
|||||||
Reference in New Issue
Block a user