nginx-0.7.53

Igor Sysoev is at rambler-co.ru
Tue Apr 28 09:14:15 MSD 2009


On Mon, Apr 27, 2009 at 09:56:40PM -0700, Michael Shadle wrote:

> what is the difference between "stop" and "quit"

"stop" sends -TERM and nginx exits immediately.
"quit" sends -QUIT and nginx exits gracefully. Probably, it should
be called "shutdown".

> i assume "reopen" is to reopen logfiles, and "reload" is graceful reloading
> 
> you should add in a restart as well (forceful restart)

I will think, I believe that restart is not good idea at all.

> 2009/4/27 Igor Sysoev <is at rambler-co.ru>:
> > On Mon, Apr 27, 2009 at 06:49:17PM -0700, Michael Shadle wrote:
> >
> >> On Mon, Apr 27, 2009 at 6:32 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> >>
> >> >  -s signal     : send signal to a master process: stop, quit, reopen, reload
> >>
> >> so -s will find the master process somehow? does it use the pid file
> >> defined in nginx.conf, or the default pid file location built in to
> >> the  binary? or some other magic?
> >
> > -s uses pid file defined in nginx.conf, if it's not defined, then built-in.
> >
> > So you may use
> > ./nginx -s reload -c /path/to/nginx.conf
> > or
> > ./nginx -s reload -p /path/to/nginx
> >
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
> >
> >
> 
> hat is th

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list