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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user