diff --git a/etc/linux-systemd/system/syncthing@.service b/etc/linux-systemd/system/syncthing@.service index 6a85e401a..c5d9ad544 100644 --- a/etc/linux-systemd/system/syncthing@.service +++ b/etc/linux-systemd/system/syncthing@.service @@ -6,10 +6,9 @@ Wants=syncthing-inotify@.service [Service] User=%i -Environment=STNORESTART=yes -ExecStart=/usr/bin/syncthing -no-browser -logflags=0 +ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 Restart=on-failure -SuccessExitStatus=2 3 4 +SuccessExitStatus=3 4 RestartForceExitStatus=3 4 [Install] diff --git a/etc/linux-systemd/user/syncthing.service b/etc/linux-systemd/user/syncthing.service index c765f7274..2039b3468 100644 --- a/etc/linux-systemd/user/syncthing.service +++ b/etc/linux-systemd/user/syncthing.service @@ -5,10 +5,9 @@ After=network.target Wants=syncthing-inotify.service [Service] -Environment=STNORESTART=yes -ExecStart=/usr/bin/syncthing -no-browser -logflags=0 +ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 Restart=on-failure -SuccessExitStatus=2 3 4 +SuccessExitStatus=3 4 RestartForceExitStatus=3 4 [Install]