nixos/taskserver: Restart service on failure
This is the recommended way for long-running services and ensures that Taskserver will keep running until it has been stopped manually. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
cf46256bbb
commit
980f557c46
@ -440,6 +440,7 @@ in {
|
||||
serviceConfig = {
|
||||
ExecStart = "@${taskd} taskd server";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -USR1 $MAINPID";
|
||||
Restart = "on-failure";
|
||||
PermissionsStartOnly = true;
|
||||
PrivateTmp = true;
|
||||
PrivateDevices = true;
|
||||
|
Loading…
Reference in New Issue
Block a user