diff options
author | Simon Frei <freisim93@gmail.com> | 2021-03-07 15:25:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 15:25:55 +0100 |
commit | 587c89d9798df451d1dced957196d9491a442e2f (patch) | |
tree | b7910e6648719ad6c0f9599e40772dc080875279 /etc | |
parent | 310fba4c12d8154e58a45e7333c540f7f4c139ce (diff) | |
download | syncthing-587c89d9798df451d1dced957196d9491a442e2f.tar.gz syncthing-587c89d9798df451d1dced957196d9491a442e2f.zip |
cmd/syncthing, etc: Consistent failure restart backoff (#7439)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/linux-systemd/system/syncthing@.service | 4 | ||||
-rw-r--r-- | etc/linux-systemd/user/syncthing.service | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/etc/linux-systemd/system/syncthing@.service b/etc/linux-systemd/system/syncthing@.service index 6d676009c..ceb86e952 100644 --- a/etc/linux-systemd/system/syncthing@.service +++ b/etc/linux-systemd/system/syncthing@.service @@ -7,7 +7,9 @@ After=network.target User=%i ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 Restart=on-failure -RestartSec=5 +RestartSec=1 +StartLimitIntervalSec=60 +StartLimitBurst=4 SuccessExitStatus=3 4 RestartForceExitStatus=3 4 diff --git a/etc/linux-systemd/user/syncthing.service b/etc/linux-systemd/user/syncthing.service index 7ad05d95a..e28ec8b5e 100644 --- a/etc/linux-systemd/user/syncthing.service +++ b/etc/linux-systemd/user/syncthing.service @@ -5,7 +5,9 @@ Documentation=man:syncthing(1) [Service] ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 Restart=on-failure -RestartSec=5 +RestartSec=1 +StartLimitIntervalSec=60 +StartLimitBurst=4 SuccessExitStatus=3 4 RestartForceExitStatus=3 4 |