syncthing: set systemd start limits
Add StartLimitIntervalSec and StartLimitBurst configuration to the Syncthing systemd unit. This prevents Syncthing restarting indefinitely if it hits a bug such as NixOS/nixpkgs#502836. The values here are taken from the values provided in the upstream Syncthing example systemd unit[0]. [0]: https://github.com/syncthing/syncthing/blob/1a3cbca0170306541d3d1877cc1a9efbd8d8c017/etc/linux-systemd/user/syncthing.service
This commit is contained in:
committed by
Robert Helgesson
parent
2bd16b16a7
commit
4bdfeff1d9
@@ -774,6 +774,8 @@ in
|
||||
Description = "Syncthing - Open Source Continuous File Synchronization";
|
||||
Documentation = "man:syncthing(1)";
|
||||
After = [ "network.target" ];
|
||||
StartLimitIntervalSec = 60;
|
||||
StartLimitBurst = 4;
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
||||
Reference in New Issue
Block a user