etc: Fix start-limit parameters location in systemd units (ref #7439) (#7529)

This commit is contained in:
MichaIng 2021-03-28 14:14:10 +02:00 committed by GitHub
parent 707001c403
commit 33212716cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -2,14 +2,14 @@
Description=Syncthing - Open Source Continuous File Synchronization for %I Description=Syncthing - Open Source Continuous File Synchronization for %I
Documentation=man:syncthing(1) Documentation=man:syncthing(1)
After=network.target After=network.target
StartLimitIntervalSec=60
StartLimitBurst=4
[Service] [Service]
User=%i User=%i
ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0
Restart=on-failure Restart=on-failure
RestartSec=1 RestartSec=1
StartLimitIntervalSec=60
StartLimitBurst=4
SuccessExitStatus=3 4 SuccessExitStatus=3 4
RestartForceExitStatus=3 4 RestartForceExitStatus=3 4

View File

@ -1,13 +1,13 @@
[Unit] [Unit]
Description=Syncthing - Open Source Continuous File Synchronization Description=Syncthing - Open Source Continuous File Synchronization
Documentation=man:syncthing(1) Documentation=man:syncthing(1)
StartLimitIntervalSec=60
StartLimitBurst=4
[Service] [Service]
ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0
Restart=on-failure Restart=on-failure
RestartSec=1 RestartSec=1
StartLimitIntervalSec=60
StartLimitBurst=4
SuccessExitStatus=3 4 SuccessExitStatus=3 4
RestartForceExitStatus=3 4 RestartForceExitStatus=3 4