From 298b3dd4c60e07e0ec3449ffb860bb9184ee4f29 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 24 Apr 2019 20:45:56 +0200 Subject: [PATCH] add stop service during upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 3e51751..64b0771 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,6 +72,12 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors +#================================================= +# STOP SERVICE +#================================================= + +ynh_systemd_action --action=stop --service_name=$app --log_path=systemd + #================================================= # STANDARD UPGRADE STEPS #=================================================