1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sonarr_ynh.git synced 2024-09-03 20:26:19 +02:00

Add service start timeout

This commit is contained in:
tituspijean 2021-06-04 13:06:15 +02:00
parent 88813dba2e
commit 4352d204ba
4 changed files with 4 additions and 4 deletions

View file

@ -108,7 +108,7 @@ fi
# UPDATE CONFIGURATION FILE
#=================================================
ynh_add_config --template="../conf/config.xml" --destination="$final_path/config.xml"
ynh_exec_warn_less 'ynh_add_config --template="../conf/config.xml" --destination="$final_path/config.xml"'
mkdir -p "$final_path"
chmod 750 "$final_path"

View file

@ -137,7 +137,7 @@ yunohost service add $app --description="Sonarr daemon" --log="$final_path/logs/
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

View file

@ -110,7 +110,7 @@ yunohost service add $app --description="Sonarr daemon" --log="$final_path/logs/
#=================================================
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

View file

@ -127,7 +127,7 @@ yunohost service add $app --description="Sonarr daemon" --log="$final_path/logs/
#=================================================
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