@@ -1,12 +1,12 @@
--- a/etc/linux-systemd/user/syncthing.service
+++ b/etc/linux-systemd/user/syncthing.service
-@@ -7,9 +7,10 @@ Wants=syncthing-inotify.service
+@@ -5,9 +5,10 @@ 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
+Restart=always
- SuccessExitStatus=2 3 4
+ SuccessExitStatus=3 4
RestartForceExitStatus=3 4
+OOMScoreAdjust=-500
|