nginx -s stop and -s quit what is the difference?

Solution 1:

Quit is a graceful shutdown. Nginx finishes serving the open connections before shutdown

Stop is a quick shutdown where is terminates in between serving the connection

http://wiki.nginx.org/CommandLine

Solution 2:

-s stop terminates the nginx process immediately while -s quit does a graceful shutdown.

Solution 3:

SIGQUIT causes nginx to break if it listens on Unix domain sockets. It will fail to clean up sockets, then immediately terminate on next invocation because it can't create sockets at paths which already exist.

SIGTERM causes nginx to shut down into a consistent state from which it can start back up. The daemon removes any Unix domain sockets, leaves all caches in a usable state, and so forth.

You basically never want to use QUIT.