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:
parent
9e225bf0e5
commit
ecd58e7646
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue