Skip to content

Instantly share code, notes, and snippets.

@Lax
Created June 4, 2018 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lax/7c00d4546534fc498d1fd56872366b7b to your computer and use it in GitHub Desktop.
Save Lax/7c00d4546534fc498d1fd56872366b7b to your computer and use it in GitHub Desktop.
Ngins Signals

sudo nginx

# Start the server.  If it's already started you'll see
# a bunch of "bind" errors.  If you want to restart you
# should do a "-s quit" first.

sudo nginx -s stop

# Stop the server quickly.  (Sends the SIGTERM signal.)

sudo nginx -s quit

# Stop the server gracefully.  (Sends the SIGQUIT signal.)

sudo nginx -s reopen

# Reopen the server's log files but don't do anything else.

sudo nginx -s reload

# Reload the server's configuration file.
# Use this when you make changes to the configuration, but don't
# need to do a hard restart.  This will gracefully shut down old
# worker processes that are using the old configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment