0x1
The master Nginx process can handle the following signals on Linux and Unix like systems:
TERM, INT : Quick shutdown
QUIT : Graceful shutdown
KILL : Halts a stubborn process
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
如上的话,如果是切割日志,那么推荐使用USR1
评论