mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
SETUP SYSTEMD
This commit is contained in:
parent
f448f9c313
commit
eff0682f87
1 changed files with 5 additions and 0 deletions
|
@ -117,6 +117,11 @@ echo "deb http://apt.syncthing.net/ syncthing $channel" | sudo tee /etc/apt/sour
|
|||
sudo apt-get update -qq
|
||||
sudo apt-get install syncthing -y --force-yes
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
#=================================================
|
||||
ynh_print_info "Configuring a systemd service..."
|
||||
|
||||
# Install and monitor service
|
||||
sudo sed -i '/^\[Service\]$/,/^\[/ s/^Restart=on-failure/Restart=always/' /lib/systemd/system/syncthing@.service
|
||||
sudo systemctl daemon-reload
|
||||
|
|
Loading…
Add table
Reference in a new issue