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:
parent
ce9fdbecee
commit
d7d3be0569
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue