From 6cbf506830f7b326baa3bb6a129eaee0488af6ef Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 29 Jul 2023 20:07:50 +0200 Subject: [PATCH] Update service monitoring line_match --- scripts/change_url | 2 +- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 6d59ec1..71d1f51 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -115,7 +115,7 @@ fi ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started" #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index 0ca4c6e..ae18b13 100755 --- a/scripts/install +++ b/scripts/install @@ -174,7 +174,7 @@ yunohost service add $app --description="$app daemon, turns any database into a ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 0af2d78..588d3f5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -125,7 +125,7 @@ yunohost service add $app --description="$app daemon, turns any database into a #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index b9c3f41..b85ba79 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -152,7 +152,7 @@ yunohost service add $app --description="$app daemon, turns any database into a #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started" #================================================= # RELOAD NGINX