diff --git a/scripts/restore b/scripts/restore index b46ccb2..71e3374 100755 --- a/scripts/restore +++ b/scripts/restore @@ -45,12 +45,16 @@ mkdir -p /var/log/$app ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= -# START SYSTEMD SERVICE +# GENERIC FINALIZATION #================================================= -ynh_script_progression --message="Starting a systemd service..." --weight=1 +# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE +#================================================= +ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="event=serving" +ynh_systemd_action --service_name=nginx --action=reload + #================================================= # END OF SCRIPT #=================================================