diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-04-12 06:43:21 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-04-12 06:43:21 +0200 |
commit | 980f557c460c32bcdeb10100e6ddf9fd799a6059 (patch) | |
tree | 577c1d43ebb8a433b4dbc52790c61e88b4de8dec /nixos/modules/services/misc/taskserver/default.nix | |
parent | cf46256bbbf559f8cc0c8c9c8a6dd7fdb0af82fd (diff) |
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>
Diffstat (limited to 'nixos/modules/services/misc/taskserver/default.nix')
-rw-r--r-- | nixos/modules/services/misc/taskserver/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index 261d4d4d4b0dd..4d3afdeedfa70 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -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; |