FAQ

Page Discussion History

LogRotation

Revision as of 09:35, 11 January 2013 by Genezys (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Log Rotation

nginx will re-open its 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: