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

STOP AND REMOVE SERVICE

This commit is contained in:
yalh76 2019-04-13 17:18:37 +02:00
parent 937377f355
commit c7c4e003c4

View file

@ -25,8 +25,12 @@ GUIPORT=$(ynh_app_setting_get $app guiport)
final_path=$(ynh_app_setting_get $app final_path)
#=================================================
# STOP AND REMOVE SERVICE
#=================================================
ynh_print_info "Stopping and removing the systemd service"
# Stop and remove syncthing service
# Remove the dedicated systemd config
sudo systemctl stop syncthing@$SYNCUSER.service
sudo yunohost service remove syncthing
sudo systemctl disable syncthing@$SYNCUSER.service