From eff0682f87bd1a77469667c42247c7ec125f1eaf Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 16:40:17 +0200 Subject: [PATCH] SETUP SYSTEMD --- scripts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index cd3f889..25c5937 100644 --- a/scripts/install +++ b/scripts/install @@ -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