nixos/unifi: restarting on failure (#67456)
commit81fe072a8fb335a668d68e9dde9fe4bf60e611a6
authorMarek Mahut <marek.mahut@gmail.com>
dateMon 26 Aug 2019, 02:22 (7 years ago)
parente3a6b8f
nixos/modules/services/networking/unifi.nix+1
@@ -176,6 +176,7 @@ in
176176 Type = "simple";
177177 ExecStart = "${(removeSuffix "\n" cmd)} start";
178178 ExecStop = "${(removeSuffix "\n" cmd)} stop";
179+ Restart = "on-failure";
179180 User = "unifi";
180181 UMask = "0077";
181182 WorkingDirectory = "${stateDir}";