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:
aszlig 2016-04-12 06:43:21 +02:00
parent cf46256bbb
commit 980f557c46
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -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;