Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Apache has a graceful option which can scan for modification in http.conf without restarting apache,what about nginx?

share|improve this question

5 Answers 5

up vote 39 down vote accepted

nginx supports the following signals :

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)

source : http://nginx.org/en/docs/control.html

share|improve this answer

Use nginx -s reload

share|improve this answer
^This 100%. Worked a charm. –  Achmed Durangi Sep 26 '13 at 12:00

Usually nginx's init-script has reload action, i.e:

  • Linux /etc/init.d/nginx reload
  • FreeBSD /usr/local/etc/rc.d/nginx reload
share|improve this answer

I wrote about how to restart nginx with zero downtime a while ago. This may be helpful for you.


share|improve this answer
Your blog thing has no actual information. –  Geuis Jun 20 '13 at 7:32
USR2 is for upgrading the executable, not for simple config reloading. –  Brad May 22 '14 at 21:19

service nginx reload ?

P.S. Doesn't work on Windows.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.