add Restart=on-failure and RestartSec=30
This commit is contained in:
@@ -471,6 +471,8 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 30;
|
||||||
ExecStart = "${mkInitScript name inst}";
|
ExecStart = "${mkInitScript name inst}";
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (inst.networkNamespacePath != null) {
|
// lib.optionalAttrs (inst.networkNamespacePath != null) {
|
||||||
@@ -489,6 +491,8 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 30;
|
||||||
ExecStart = "${mkBazarrInitScript}";
|
ExecStart = "${mkBazarrInitScript}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user