From 81fe072a8fb335a668d68e9dde9fe4bf60e611a6 Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Mon, 26 Aug 2019 02:22:03 +0200 Subject: [PATCH] nixos/unifi: restarting on failure (#67456) --- nixos/modules/services/networking/unifi.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index 6239c88b7e4..c922ba15960 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -176,6 +176,7 @@ in Type = "simple"; ExecStart = "${(removeSuffix "\n" cmd)} start"; ExecStop = "${(removeSuffix "\n" cmd)} stop"; + Restart = "on-failure"; User = "unifi"; UMask = "0077"; WorkingDirectory = "${stateDir}";