From 3a60c08ca1e1b9a34fa4ab4888395af514889c14 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 18 Dec 2021 20:29:14 +0100 Subject: [PATCH] Add timeout to service start commands --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index b4066b2..d6afdad 100755 --- a/scripts/install +++ b/scripts/install @@ -168,7 +168,7 @@ yunohost service add $app --description="Radarr daemon" --log="$data_path/logs/r ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Starting Web Server" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Starting Web Server" --timeout=30 #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 668ce1e..a1729f5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -123,7 +123,7 @@ yunohost service add $app --description="Radarr daemon" --log="$data_path/logs/r #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Starting Web Server" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Starting Web Server" --timeout=30 #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index a206022..eee93d9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -154,7 +154,7 @@ yunohost service add $app --description="Radarr daemon" --log="$data_path/logs/r #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Starting Web Server" --timeout=30 #================================================= # RELOAD NGINX