treewide: move StartLimitIntervalSec/StartLimitBurst to unitConfig
This commit is contained in:
parent
605cfcce80
commit
f88e1c39e9
@ -295,6 +295,8 @@ in
|
||||
'';
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitBurst = 3;
|
||||
StartLimitInterval = 10;
|
||||
};
|
||||
|
@ -123,9 +123,11 @@ in
|
||||
ExecStart = "${cfg.package}/sbin/start-master.sh";
|
||||
ExecStop = "${cfg.package}/sbin/stop-master.sh";
|
||||
TimeoutSec = 300;
|
||||
StartLimitBurst = 10;
|
||||
Restart = "always";
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitBurst = 10;
|
||||
};
|
||||
};
|
||||
spark-worker = lib.mkIf cfg.worker.enable {
|
||||
path = with pkgs; [
|
||||
@ -151,9 +153,11 @@ in
|
||||
ExecStart = "${cfg.package}/sbin/start-worker.sh spark://${cfg.worker.master}";
|
||||
ExecStop = "${cfg.package}/sbin/stop-worker.sh";
|
||||
TimeoutSec = 300;
|
||||
StartLimitBurst = 10;
|
||||
Restart = "always";
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitBurst = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
tmpfiles.rules = [
|
||||
|
@ -195,6 +195,8 @@ in
|
||||
|
||||
Restart = "on-failure";
|
||||
RestartSec = 10;
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitBurst = 5;
|
||||
};
|
||||
};
|
||||
|
@ -157,9 +157,11 @@ in
|
||||
ExecStart = "${cfg.package}/bin/conduit";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 10;
|
||||
StartLimitBurst = 5;
|
||||
UMask = "077";
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitBurst = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -310,7 +310,6 @@ in
|
||||
|
||||
Restart = "always";
|
||||
RestartSec = 10;
|
||||
StartLimitBurst = 5;
|
||||
UMask = "007";
|
||||
LimitNOFILE = "100000";
|
||||
|
||||
@ -341,6 +340,9 @@ in
|
||||
"~@privileged"
|
||||
];
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitBurst = 5;
|
||||
};
|
||||
}
|
||||
))
|
||||
) eachFedimintd;
|
||||
|
@ -298,7 +298,6 @@ in
|
||||
Nice = -5;
|
||||
Type = "forking";
|
||||
NotifyAccess = "all";
|
||||
StartLimitBurst = "3";
|
||||
TimeoutSec = 120;
|
||||
WatchdogSec = 60;
|
||||
RestartSec = 5;
|
||||
@ -309,6 +308,9 @@ in
|
||||
ExecStop = "${pkgs.frr}/libexec/frr/frrinit.sh stop";
|
||||
ExecReload = "${pkgs.frr}/libexec/frr/frrinit.sh reload";
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitBurst = "3";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -82,7 +82,6 @@ in
|
||||
TimeoutSec = 0;
|
||||
RestartSec = 2;
|
||||
Restart = "always";
|
||||
StartLimitBurst = 3;
|
||||
LimitNOFILE = "infinity";
|
||||
LimitNPROC = "infinity";
|
||||
LimitCORE = "infinity";
|
||||
@ -90,6 +89,9 @@ in
|
||||
NotifyAccess = "all";
|
||||
KillMode = "mixed";
|
||||
};
|
||||
unitConfig = {
|
||||
StartLimitBurst = 3;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
];
|
||||
# Try for about 10 minutes rather than the default of 5 attempts.
|
||||
serviceConfig.RestartSec = 1;
|
||||
serviceConfig.StartLimitBurst = 600;
|
||||
unitConfig.StartLimitBurst = 600;
|
||||
};
|
||||
# systemd.services.vault.unitConfig.RequiresMountsFor = "/run/keys/";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user