diff --git a/etc/systemd/system/syncthing@.service b/etc/systemd/system/syncthing@.service index f0b6b777..5f6ffbd3 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 22f96efa..6f10539f 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