etc: Add RestartSec=5 to linux-systemd units

Might help avoiding the 'Start request repeated too quickly.' error.

Fixes #6633, fixes #6634
This commit is contained in:
NinoM4ster 2020-05-12 10:01:10 +02:00 committed by Jakob Borg
parent 6201eebc98
commit c84f60f949
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ After=network.target
User=%i User=%i
ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0
Restart=on-failure Restart=on-failure
RestartSec=5
SuccessExitStatus=3 4 SuccessExitStatus=3 4
RestartForceExitStatus=3 4 RestartForceExitStatus=3 4

View File

@ -5,6 +5,7 @@ Documentation=man:syncthing(1)
[Service] [Service]
ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0
Restart=on-failure Restart=on-failure
RestartSec=5
SuccessExitStatus=3 4 SuccessExitStatus=3 4
RestartForceExitStatus=3 4 RestartForceExitStatus=3 4