1
0
Fork 0
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:
Josué Tille 2024-04-04 22:42:20 +02:00
parent bc4020564d
commit 2c4e7ff6e4
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
3 changed files with 6 additions and 1 deletions

View file

@ -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
#=================================================

View file

@ -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
#=================================================

View file

@ -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
#=================================================