From 31f8217ea714f7f0fcd2d54a3dfafb599bf67127 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 20 Mar 2019 18:13:16 +0100 Subject: [PATCH] change system start parameters --- scripts/change_url | 3 ++- scripts/install | 3 ++- scripts/restore | 3 ++- scripts/upgrade | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index afe76c7..5f53319 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -124,7 +124,8 @@ ynh_store_file_checksum "$final_path/.env" # START SERVICE #================================================= -ynh_systemd_action --action=start --service_name=$app --line_match="http" +ynh_systemd_action --action=start --service_name=$app --log_path=systemd --line_match="Started Distbin Service" +sleep 10 #================================================= # GENERIC FINALISATION diff --git a/scripts/install b/scripts/install index 9eca9b9..fc2be34 100644 --- a/scripts/install +++ b/scripts/install @@ -287,7 +287,8 @@ systemctl reload nginx # START SERVICE #================================================= -ynh_systemd_action --action=start --service_name=$app --line_match="http" +ynh_systemd_action --action=start --service_name=$app --log_path=systemd --line_match="Started Distbin Service" +sleep 10 #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index d440e01..79ce708 100644 --- a/scripts/restore +++ b/scripts/restore @@ -140,7 +140,8 @@ chown -R "$app":"$app" "/var/log/$app" # START SERVICE #================================================= -ynh_systemd_action --action=start --service_name=$app --line_match="http" +ynh_systemd_action --action=start --service_name=$app --log_path=systemd --line_match="Started Distbin Service" +sleep 10 #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 80f5908..d88779f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -213,7 +213,8 @@ systemctl reload nginx # START SERVICE #================================================= -ynh_systemd_action --action=start --service_name=$app --line_match="http" +ynh_systemd_action --action=start --service_name=$app --log_path=systemd --line_match="Started Distbin Service" +sleep 10 #================================================= # END OF SCRIPT