1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

always restart syncthing not only on failure

This commit is contained in:
Lahire BIETTE 2016-01-15 13:16:33 +01:00
parent ce9fdbecee
commit d7d3be0569

View file

@ -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