diff options
author | MichaIng <micha@dietpi.com> | 2021-03-28 14:14:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-28 14:14:10 +0200 |
commit | 33212716cfed3823186c24164ffcd769125c81fb (patch) | |
tree | efe0672a945f698d02f83fab6f22e78d6e5c181e /etc | |
parent | 707001c403611eb4a1cd7fac32f221d319c04e5b (diff) | |
download | syncthing-33212716cfed3823186c24164ffcd769125c81fb.tar.gz syncthing-33212716cfed3823186c24164ffcd769125c81fb.zip |
etc: Fix start-limit parameters location in systemd units (ref #7439) (#7529)
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, 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 |