From c84f60f949ece114d4b4e55d8d3bc2bdfc23d6f0 Mon Sep 17 00:00:00 2001 From: NinoM4ster Date: Tue, 12 May 2020 10:01:10 +0200 Subject: [PATCH] etc: Add RestartSec=5 to linux-systemd units Might help avoiding the 'Start request repeated too quickly.' error. Fixes #6633, fixes #6634 --- etc/linux-systemd/system/syncthing@.service | 1 + etc/linux-systemd/user/syncthing.service | 1 + 2 files changed, 2 insertions(+) diff --git a/etc/linux-systemd/system/syncthing@.service b/etc/linux-systemd/system/syncthing@.service index 30846b1c2..70bdade0b 100644 --- a/etc/linux-systemd/system/syncthing@.service +++ b/etc/linux-systemd/system/syncthing@.service @@ -7,6 +7,7 @@ After=network.target User=%i ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 Restart=on-failure +RestartSec=5 SuccessExitStatus=3 4 RestartForceExitStatus=3 4 diff --git a/etc/linux-systemd/user/syncthing.service b/etc/linux-systemd/user/syncthing.service index 9b7ed807d..0e648fa04 100644 --- a/etc/linux-systemd/user/syncthing.service +++ b/etc/linux-systemd/user/syncthing.service @@ -5,6 +5,7 @@ Documentation=man:syncthing(1) [Service] ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 Restart=on-failure +RestartSec=5 SuccessExitStatus=3 4 RestartForceExitStatus=3 4