diff --git a/scripts/change_url b/scripts/change_url index f58e020..0c3c61e 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -150,6 +150,7 @@ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="$final_path/log/unicorn.stderr.log" --line_match="INFO -- : worker=$((unicorn_workers-1)) ready" +sleep 60 #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index 4c0989f..2ab6455 100644 --- a/scripts/install +++ b/scripts/install @@ -314,7 +314,7 @@ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="$final_path/log/unicorn.stderr.log" --line_match="INFO -- : worker=$((unicorn_workers-1)) ready" -sleep 120 +sleep 60 #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index ad2fcb1..88cd625 100644 --- a/scripts/restore +++ b/scripts/restore @@ -136,6 +136,7 @@ else fi ynh_app_setting_set --app=$app --key=unicorn_workers --value=$unicorn_workers ynh_systemd_action --service_name=$app --action="start" --log_path="$final_path/log/unicorn.stderr.log" --line_match="INFO -- : worker=$((unicorn_workers-1)) ready" +sleep 60 #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index a0026a9..f50537b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -364,6 +364,7 @@ yunohost service add $app --log "$final_path/log/unicorn.stderr.log" "$final_pat ynh_script_progression --message="Starting a systemd service..." ynh_systemd_action --service_name=$app --action="start" --log_path="$final_path/log/unicorn.stderr.log" --line_match="INFO -- : worker=$((unicorn_workers-1)) ready" +sleep 60 #================================================= # DISABLE MAINTENANCE MODE