add Restart=on-failure and RestartSec=30

This commit is contained in:
2026-03-03 13:36:49 -05:00
parent 6cdab23f7f
commit 4cc1ae4e00

View File

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