diff --git a/scripts/install b/scripts/install index 2fa7ad2..d729555 100755 --- a/scripts/install +++ b/scripts/install @@ -204,7 +204,7 @@ yunohost service add $app --description="Zwave integration in domoticz" --log="/ ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --line_match="Listening on port" -t 30 --log_path="/var/log/$app/$app.log" #================================================= # SETUP FAIL2BAN diff --git a/scripts/restore b/scripts/restore index 0b0bc72..369ad5a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -126,7 +126,7 @@ yunohost service add $app --description="Zwave integration in domoticz" --log="/ #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +yunohost service add $app --description="Zwave integration in domoticz" --line_match="Listening on port" -t 30 --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index b0fb57f..658e2f7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -176,7 +176,7 @@ yunohost service add $app --description="Zwave integration in domoticz" --log="/ #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --line_match="Listening on port" -t 30 --log_path="/var/log/$app/$app.log" #================================================= # UPGRADE FAIL2BAN