From 4cc1ae4e00844d2bd80da3869f17649c1cef3f8a Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 3 Mar 2026 13:36:49 -0500 Subject: [PATCH] add Restart=on-failure and RestartSec=30 --- module.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module.nix b/module.nix index f0d744d..3c2916b 100644 --- a/module.nix +++ b/module.nix @@ -471,6 +471,8 @@ in serviceConfig = { Type = "oneshot"; RemainAfterExit = true; + Restart = "on-failure"; + RestartSec = 30; ExecStart = "${mkInitScript name inst}"; } // lib.optionalAttrs (inst.networkNamespacePath != null) { @@ -489,6 +491,8 @@ in serviceConfig = { Type = "oneshot"; RemainAfterExit = true; + Restart = "on-failure"; + RestartSec = 30; ExecStart = "${mkBazarrInitScript}"; }; };