Store the pidfile elsewhere
This commit is contained in:
parent
1798c85609
commit
0184969af8
|
@ -90,7 +90,7 @@ in {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
RestartSec = "5s";
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
PIDFile = "/run/objectifier.pid";
|
PIDFile = ''"$RUNTIME_DIRECTORY/objectifier.pid"'';
|
||||||
ExecStart = let
|
ExecStart = let
|
||||||
bindClause = concatStringsSep " "
|
bindClause = concatStringsSep " "
|
||||||
(map (addr: "--bind ${addr}:${toString cfg.port}")
|
(map (addr: "--bind ${addr}:${toString cfg.port}")
|
||||||
|
@ -99,7 +99,7 @@ in {
|
||||||
"${pkgs.objectifier}/bin/objectifier"
|
"${pkgs.objectifier}/bin/objectifier"
|
||||||
bindClause
|
bindClause
|
||||||
"--workers ${toString cfg.workers}"
|
"--workers ${toString cfg.workers}"
|
||||||
"--pid /run/objectifier.pid"
|
''--pid "$RUNTIME_DIRECTORY/objectifier.pid"''
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue