diff --git a/scripts/change_url b/scripts/change_url index ee5fef9..29ec71b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -101,6 +101,15 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= +# SETUP SYSTEMD +#================================================= +ynh_script_progression --message="Configuring a systemd service..." --weight=1 + +path_url=$new_path +# Create a dedicated systemd config +ynh_add_systemd_config + #================================================= # GENERIC FINALISATION #================================================= @@ -108,7 +117,7 @@ fi #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=5 -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Tomcat started on port\(s\): $port \(http\) with context path '$path_url'" +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started ApplicationKt" #================================================= # RELOAD NGINX diff --git a/scripts/restore b/scripts/restore index ec91735..3e106e8 100755 --- a/scripts/restore +++ b/scripts/restore @@ -115,7 +115,7 @@ yunohost service add $app --description="Media server for your comics, manga and #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=3 -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Tomcat started on port\(s\): $port \(http\) with context path '$path_url'" +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started ApplicationKt" #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index d768a3e..9945716 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -122,7 +122,7 @@ yunohost service add $app --description="Media server for your comics, manga and #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Completed initialization" --timeout="120" +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started ApplicationKt" #================================================= # RELOAD NGINX