change systemd restart policy to always with rate limiting
This commit is contained in:
parent
f071bb17e1
commit
a96971fba4
1 changed files with 4 additions and 1 deletions
|
|
@ -282,7 +282,10 @@ in
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = lib.getExe cfg.package;
|
ExecStart = lib.getExe cfg.package;
|
||||||
Restart = "on-failure";
|
Restart = "always";
|
||||||
|
RestartSec = 1;
|
||||||
|
StartLimitIntervalSec = 30;
|
||||||
|
StartLimitBurst = 5;
|
||||||
Slice = "session.slice";
|
Slice = "session.slice";
|
||||||
};
|
};
|
||||||
Install.WantedBy = [ cfg.systemd.target ];
|
Install.WantedBy = [ cfg.systemd.target ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue