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

Replaced restart by reload #702

Merged
merged 1 commit into from
Nov 2, 2015
Merged

Replaced restart by reload #702

merged 1 commit into from
Nov 2, 2015

Conversation

matfra
Copy link

@matfra matfra commented Oct 23, 2015

It may be better to reload instead of restart to prevent broken connections on production environment.

From official nginx doc:
Once the master process receives the signal to reload configuration, it checks the syntax validity of the new configuration file and tries to apply the configuration provided in it. If this is a success, the master process starts new worker processes and sends messages to old worker processes, requesting them to shut down. Otherwise, the master process rolls back the changes and continues to work with the old configuration. Old worker processes, receiving a command to shut down, stop accepting new connections and continue to service current requests until all such requests are serviced. After that, the old worker processes exit.

@jfryman
Copy link
Contributor

jfryman commented Nov 2, 2015

Most certainly! Thanks for the code! 🙇

jfryman added a commit that referenced this pull request Nov 2, 2015
Replaced restart by reload
@jfryman jfryman merged commit 36a64b0 into voxpupuli:master Nov 2, 2015
@jlory
Copy link

jlory commented Nov 2, 2015

You should run configtest first, reload doesn't check the syntax of the files.

@jfryman
Copy link
Contributor

jfryman commented Nov 2, 2015

@jlory Yup. Great point. One sec...

jfryman added a commit that referenced this pull request Nov 2, 2015
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
Slm0n87 pushed a commit to Slm0n87/puppet-nginx that referenced this pull request Mar 7, 2019
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

Successfully merging this pull request may close these issues.

None yet

4 participants