about log rotation
lfchieu at gmail.com
Mon Jun 22 11:18:44 MSD 2009
I found the way of the log rotation is below. And during the period between
"mv" and "kill", some logs will be lost because of the file doesn't exist
Is there any good ways?
nginx will re-open it's logs in response to the USR1 signal.
$ mv access.log access.log.0
$ kill -USR1 <code>cat master.nginx.pid</code>
$ sleep 1
$ gzip access.log.0 # do something with access.log.0
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx