helpers2.1: change default timeout of ynh_systemctl to 60s instead of 300s

This commit is contained in:
Alexandre Aubin 2024-06-23 14:27:37 +02:00
parent d4857834f3
commit 262453f132

View file

@ -49,7 +49,7 @@ ynh_config_remove_systemd() {
# | arg: -a, --action= - Action to perform with systemctl. Default: start # | arg: -a, --action= - Action to perform with systemctl. Default: start
# | arg: -w, --wait_until= - The pattern to find in the log to attest the service is effectively fully started. # | arg: -w, --wait_until= - The pattern to find in the log to attest the service is effectively fully started.
# | arg: -p, --log_path= - Log file - Path to the log file. Default : `/var/log/$app/$app.log` # | arg: -p, --log_path= - Log file - Path to the log file. Default : `/var/log/$app/$app.log`
# | arg: -t, --timeout= - Timeout - The maximum time to wait before ending the watching. Default : 300 seconds. # | arg: -t, --timeout= - Timeout - The maximum time to wait before ending the watching. Default : 60 seconds.
# | arg: -e, --length= - Length of the error log displayed for debugging : Default : 20 # | arg: -e, --length= - Length of the error log displayed for debugging : Default : 20
# #
# Requires YunoHost version 3.5.0 or higher. # Requires YunoHost version 3.5.0 or higher.
@ -68,7 +68,7 @@ ynh_systemctl() {
wait_until=${wait_until:-} wait_until=${wait_until:-}
length=${length:-20} length=${length:-20}
log_path="${log_path:-/var/log/$service/$service.log}" log_path="${log_path:-/var/log/$service/$service.log}"
timeout=${timeout:-300} timeout=${timeout:-60}
# =========================================== # ===========================================
# Manage case of service already stopped # Manage case of service already stopped