Log Rotation

nginx will re-open it's logs in response to the USR1 signal.

$ mv access.log access.log.0
$ kill -USR1 `cat master.nginx.pid`
$ sleep 1
$ gzip access.log.0    # do something with access.log.0

References:

NginxLogRotation (last edited 2008-01-14 02:50:17 by DavidPhillips)