From 33212716cfed3823186c24164ffcd769125c81fb Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sun, 28 Mar 2021 14:14:10 +0200 Subject: [PATCH] etc: Fix start-limit parameters location in systemd units (ref #7439) (#7529) --- etc/linux-systemd/system/syncthing@.service | 4 ++-- etc/linux-systemd/user/syncthing.service | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/linux-systemd/system/syncthing@.service b/etc/linux-systemd/system/syncthing@.service index ceb86e952..b76b0d22f 100644 --- a/etc/linux-systemd/system/syncthing@.service +++ b/etc/linux-systemd/system/syncthing@.service @@ -2,14 +2,14 @@ Description=Syncthing - Open Source Continuous File Synchronization for %I Documentation=man:syncthing(1) After=network.target +StartLimitIntervalSec=60 +StartLimitBurst=4 [Service] User=%i ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 Restart=on-failure 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 e28ec8b5e..d1b68b5ba 100644 --- a/etc/linux-systemd/user/syncthing.service +++ b/etc/linux-systemd/user/syncthing.service @@ -1,13 +1,13 @@ [Unit] Description=Syncthing - Open Source Continuous File Synchronization Documentation=man:syncthing(1) +StartLimitIntervalSec=60 +StartLimitBurst=4 [Service] ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 Restart=on-failure RestartSec=1 -StartLimitIntervalSec=60 -StartLimitBurst=4 SuccessExitStatus=3 4 RestartForceExitStatus=3 4