Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed Restart? #4

Open
thoebert opened this issue Mar 15, 2024 · 1 comment
Open

Needed Restart? #4

thoebert opened this issue Mar 15, 2024 · 1 comment

Comments

@thoebert
Copy link

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

@tmiland
Copy link
Owner

tmiland commented Mar 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants