TERM, INT - Quick shutdown
QUIT - Graceful shutdown
HUP - Configuration reload: Start the new worker processes with a new configuration, Gracefully shutdown the old worker processes
USR1 - Reopen the log files
USR2 - Upgrade Executable on the fly
WINCH - Gracefully shutdown the worker processes
HUP is what you are looking for, so sudo kill -HUP pid (nginx pid)
Use nginx -s reload
nginx supports the following signals :
HUP is what you are looking for, so
sudo kill -HUP pid (nginx pid)
source : http://nginx.org/en/docs/control.html
Usually nginx's init-script has
reload
action, i.e:/etc/init.d/nginx reload
/usr/local/etc/rc.d/nginx reload
service nginx reload
?P.S. Doesn't work on Windows.
I wrote about how to restart nginx with zero downtime a while ago. This may be helpful for you.
http://tumblelog.jauderho.com/post/101514948/restart-nginx-with-zero-downtime