From 4b52ee67fb9fa7c50025411742b70fc999a4a804 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 17 Dec 2021 09:43:03 +0100 Subject: [PATCH] Wait for the service to start properly --- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 60de6d0..a9ca4ab 100644 --- a/scripts/install +++ b/scripts/install @@ -147,7 +147,7 @@ popd ynh_script_progression --message="Configuring a systemd service..." # Create a dedicated systemd config - ynh_add_systemd_config +ynh_add_systemd_config #================================================= # SETUP LOGROTATE @@ -170,7 +170,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="/var/log/ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" +ynh_systemd_action --service_name=$app --action="start" --line_match="Ghost booted" --timeout=60 #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 84008fc..82e6b6a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -122,7 +122,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="/var/log/ #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action=start +ynh_systemd_action --service_name=$app --action=start --line_match="Ghost booted" --timeout=60 #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index a37efb8..d34558b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -201,7 +201,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="/var/log/ #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action=start +ynh_systemd_action --service_name=$app --action=start --line_match="Ghost booted" --timeout=60 #================================================= # RELOAD NGINX