Nginx-Maintenance-Mode icon indicating copy to clipboard operation
Nginx-Maintenance-Mode copied to clipboard

Needed Restart?

Open thoebert opened this issue 1 year ago • 1 comments

Hello,

thank you for your handy scripts!

I have a question regarding the maintenance toggle shellscript: Why is it necessary to restart nginx each time the maintenance mode is toggled on/off? The file existence check in the maintenance-page.conf is executed for each nginx request, therefore in my tests it was only necessary to create the maintenance-page_on.html file without reloading nginx to turn the maintenance mode on.

Thank you, Timon

thoebert avatar Mar 15 '24 18:03 thoebert

Hello,

you're welcome. :)

Nginx is reloaded. This reloads the configuration without restarting the server, just in case any configuration has changed. If nothing has changed, then nothing is done basically.

Regards.

tmiland avatar Mar 16 '24 20:03 tmiland