Nginx restarting/log rotation

Morning all.

what is the correct procedure for asking nginx to reload the
configuration files?

and on that note, what is the procedure for restarting nginx to give me
a chance to rotate the log files once a day? something similar to an
“apachectl graceful”.

thanks
a

On Tue, Jun 24, 2008 at 4:19 PM, Alan W. [email protected]
wrote:

Morning all.

what is the correct procedure for asking nginx to reload the configuration
files?

kill -HUP cat $PIDFILE

and on that note, what is the procedure for restarting nginx to give me a
chance to rotate the log files once a day? something similar to an
“apachectl graceful”.

hm… HM… … HM… :stuck_out_tongue:

-jf


In the meantime, here is your PSA:
“It’s so hard to write a graphics driver that open-sourcing it would not
help.”
– Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228

On Tuesday 24 June 2008, Alan W. wrote:

a
http://wiki.codemongers.com/NginxCommandLine

Thank you one and all. appreciate it.

On Tue, Jun 24, 2008 at 09:19:16AM +0100, Alan W. wrote:

what is the correct procedure for asking nginx to reload the
configuration files?

-HUP

and on that note, what is the procedure for restarting nginx to give me
a chance to rotate the log files once a day? something similar to an
“apachectl graceful”.

Yes, but for instance log rotation you should use -USR1