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

Fix systemd start : wait for service to really be started

This commit is contained in:
Salamandar 2024-07-14 18:26:01 +02:00
parent 9e225bf0e5
commit ecd58e7646
4 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ chown "$app":"$app" "$install_dir/config/appsettings.json"
ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name="$app" --action=start --log_path=systemd
ynh_systemd_action --service_name="$app" --action=start --log_path=systemd --line_match="Now listening on:"
#=================================================
# END OF SCRIPT

View file

@ -62,7 +62,7 @@ chown "$app":"$app" "$install_dir/config/appsettings.json"
ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd"
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="Now listening on:"
#=================================================
# END OF SCRIPT

View file

@ -61,7 +61,7 @@ yunohost service add "$app" --description="Cross platform reading server" --log=
#=================================================
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd"
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="Now listening on:"
ynh_systemd_action --service_name=nginx --action=reload

View file

@ -90,7 +90,7 @@ yunohost service add "$app" --description="Cross platform reading server" --log=
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd"
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="Now listening on:"
#=================================================
# END OF SCRIPT