about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMarek Mahut <marek.mahut@gmail.com>2019-08-26 02:22:03 +0200
committerWael Nasreddine <wael.nasreddine@gmail.com>2019-08-25 18:22:03 -0600
commit81fe072a8fb335a668d68e9dde9fe4bf60e611a6 (patch)
tree13cb5314bfc06fde7471c9ab8221efa6385add91 /nixos
parente3a6b8f31fd781f58084d104863d62247afcdf8a (diff)
downloadnixlib-81fe072a8fb335a668d68e9dde9fe4bf60e611a6.tar
nixlib-81fe072a8fb335a668d68e9dde9fe4bf60e611a6.tar.gz
nixlib-81fe072a8fb335a668d68e9dde9fe4bf60e611a6.tar.bz2
nixlib-81fe072a8fb335a668d68e9dde9fe4bf60e611a6.tar.lz
nixlib-81fe072a8fb335a668d68e9dde9fe4bf60e611a6.tar.xz
nixlib-81fe072a8fb335a668d68e9dde9fe4bf60e611a6.tar.zst
nixlib-81fe072a8fb335a668d68e9dde9fe4bf60e611a6.zip
nixos/unifi: restarting on failure (#67456)
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/unifi.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix
index 6239c88b7e41..c922ba15960f 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}";