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}"; }; };