From d7d3be0569cfa6dfdd23908b2554f222daa339ff Mon Sep 17 00:00:00 2001 From: Lahire BIETTE Date: Fri, 15 Jan 2016 13:16:33 +0100 Subject: [PATCH] always restart syncthing not only on failure --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 0f8d264..e1abf1c 100644 --- a/scripts/install +++ b/scripts/install @@ -55,6 +55,8 @@ sudo apt-get update -qq sudo apt-get install syncthing -y --force-yes # Install and monitor service +sed -i '/^\[Service\]$/,/^\[/ s/^Restart=on-failure/Restart=always/' ~/syncthing.service +sudo systemctl daemon-reload sudo systemctl enable syncthing@$SYNCUSER.service #~ sudo yunohost service add -l /var/log/syncthing.log syncthing sudo yunohost service add syncthing