Nginx stop function in service file

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?

Thanks,

B. R.

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.

Thanks Igor for that clear and concise answer!

B. R.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs