From 92e27cac55a8c73e5f9de38552217ed4f2016fa8 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 1 Mar 2021 22:09:37 +0100 Subject: [PATCH] fix service stop --- scripts/remove | 7 +++++++ scripts/upgrade | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/scripts/remove b/scripts/remove index bf6e657..2a7695b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -31,6 +31,13 @@ then yunohost service remove $app fi +#================================================= +# STOP SYSTEMD SERVICE +#================================================= +ynh_script_progression --message="Stopping a systemd service..." + +ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped LSB" --log_path="systemd" + #================================================= # REMOVE DEPENDENCIES #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index c71e9ca..bf75020 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,6 +99,15 @@ ynh_maintenance_mode_ON ynh_backup_if_checksum_is_different --file="/etc/default/jenkins" ynh_backup_if_checksum_is_different --file="/var/lib/jenkins/config.xml" +#================================================= +# STANDARD UPGRADE STEPS +#================================================= +# STOP SYSTEMD SERVICE +#================================================= +ynh_script_progression --message="Stopping a systemd service..." + +ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped LSB" --log_path="systemd" + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================