diff --git a/etc/systemd/system/syncthing@.service b/etc/systemd/system/syncthing@.service index f0b6b7773..5f6ffbd38 100644 --- a/etc/systemd/system/syncthing@.service +++ b/etc/systemd/system/syncthing@.service @@ -8,7 +8,7 @@ Environment=STARGS= EnvironmentFile=-/etc/default/syncthing Environment=STNORESTART=yes ExecStart=/usr/bin/syncthing ${STARGS} -Restart=always +Restart=on-failure [Install] WantedBy=multi-user.target diff --git a/etc/systemd/user/syncthing.service b/etc/systemd/user/syncthing.service index 22f96efab..6f10539fa 100644 --- a/etc/systemd/user/syncthing.service +++ b/etc/systemd/user/syncthing.service @@ -6,7 +6,7 @@ Environment=STARGS= EnvironmentFile=-%h/.config/syncthing/environment Environment=STNORESTART=yes ExecStart=/usr/bin/syncthing ${STARGS} -Restart=always +Restart=on-failure [Install] WantedBy=cmdline.target