mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
fix issues with nginx reload
This commit is contained in:
parent
bc4020564d
commit
2c4e7ff6e4
3 changed files with 6 additions and 1 deletions
|
@ -77,6 +77,8 @@ ynh_use_logrotate --logfile "/var/log/$app"
|
|||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name="$app" --action="start" --log_path 'systemd' --line_match ' - Ok, ready.'
|
||||
# when we change the value of 'listen [::1]:xxx;' nginx don't reload correctly the config, so force to restart to ensure that the new config are loaded
|
||||
ynh_systemd_action --service_name=nginx.service --action=restart
|
||||
save_vars_current_value
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -59,7 +59,8 @@ ynh_use_logrotate --logfile "/var/log/$app"
|
|||
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' --line_match ' - Ok, ready.'
|
||||
|
||||
# when we change the value of 'listen [::1]:xxx;' nginx don't reload correctly the config, so force to restart to ensure that the new config are loaded
|
||||
ynh_systemd_action --service_name=nginx.service --action=restart
|
||||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -112,6 +112,8 @@ ynh_use_logrotate --logfile "/var/log/$app"
|
|||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name="$app" --action=restart --log_path=systemd --line_match ' - Ok, ready.'
|
||||
# when we change the value of 'listen [::1]:xxx;' nginx don't reload correctly the config, so force to restart to ensure that the new config are loaded
|
||||
ynh_systemd_action --service_name=nginx.service --action=restart
|
||||
save_vars_current_value
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue