add Restart=on-failure and RestartSec=30
This commit is contained in:
@@ -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}";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user