Nginx stop function in service file

Igor Sysoev igor at sysoev.ru
Thu Mar 20 10:14:53 UTC 2014


On Mar 20, 2014, at 12:28 , B.R. wrote:

> I am using the official Debian package (stable) and I noticed the service file, in its do_stop() function, sends SIGTERM to the master process.
> 
> However, the docs say SIGTERM (and SIGQUIT) sent to the master process provokes a 'fast shutdown' whereas SIGQUIT would provoke a 'graceful shutdown'.
> 
> Why is not SIGQUIT being used? What is the difference between those termination signals, speaking of nginx behavior?


Graceful shutdown means that nginx does not close active client connections. This may take hours.


-- 
Igor Sysoev
http://nginx.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140320/01039ec3/attachment.html>


More information about the nginx mailing list