about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-26 22:33:19 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-26 22:33:19 +0100
commit2f8686ce1767836793797f97a498c47383bd934a (patch)
treee7246119c0e2af9939d225495e812eafb0dc194a
parent719483f4a866418d5ef889adbe11553828167ce7 (diff)
downloadnixlib-2f8686ce1767836793797f97a498c47383bd934a.tar
nixlib-2f8686ce1767836793797f97a498c47383bd934a.tar.gz
nixlib-2f8686ce1767836793797f97a498c47383bd934a.tar.bz2
nixlib-2f8686ce1767836793797f97a498c47383bd934a.tar.lz
nixlib-2f8686ce1767836793797f97a498c47383bd934a.tar.xz
nixlib-2f8686ce1767836793797f97a498c47383bd934a.tar.zst
nixlib-2f8686ce1767836793797f97a498c47383bd934a.zip
nixos/frigate: restart the service on failure
Closes: #266837
-rw-r--r--nixos/modules/services/video/frigate.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/video/frigate.nix b/nixos/modules/services/video/frigate.nix
index 146e968780c3..b7945282ba09 100644
--- a/nixos/modules/services/video/frigate.nix
+++ b/nixos/modules/services/video/frigate.nix
@@ -353,6 +353,7 @@ in
       ];
       serviceConfig = {
         ExecStart = "${cfg.package.python.interpreter} -m frigate";
+        Restart = "on-failure";
 
         User = "frigate";
         Group = "frigate";