From 1e8da0d4949ef9f89e4e989b6f7181f46dd92ac3 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Wed, 19 Nov 2014 16:46:14 +0800 Subject: [PATCH] on-failure instead of always as we cannot otherwise kill the service --- etc/systemd/system/syncthing@.service | 2 +- etc/systemd/user/syncthing.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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