diff --git a/scripts/backup b/scripts/backup index 533955c..a4545aa 100644 --- a/scripts/backup +++ b/scripts/backup @@ -30,6 +30,12 @@ app=$YNH_APP_INSTANCE_NAME final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) +#================================================= +# STOP SYSTEMD SERVICE +#================================================= + +ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped LSB" --log_path="systemd" + #================================================= # DECLARE DATA AND CONF FILES TO BACKUP #================================================= @@ -55,6 +61,12 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/default/$app" +#================================================= +# START SYSTEMD SERVICE +#================================================= + +ynh_systemd_action --service_name=$app --action="restart" --line_match="Jenkins is fully up and running" --log_path="/var/log/$app/$app.log" + #================================================= # END OF SCRIPT #=================================================