aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSimon Frei <freisim93@gmail.com>2021-03-07 15:25:55 +0100
committerGitHub <noreply@github.com>2021-03-07 15:25:55 +0100
commit587c89d9798df451d1dced957196d9491a442e2f (patch)
treeb7910e6648719ad6c0f9599e40772dc080875279 /etc
parent310fba4c12d8154e58a45e7333c540f7f4c139ce (diff)
downloadsyncthing-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@.service4
-rw-r--r--etc/linux-systemd/user/syncthing.service4
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