Log file rotation script

Rt Ibmer rtibmx at yahoo.com
Tue Jun 10 17:12:15 MSD 2008

> * nginx still writes to the (renamed) old file

Ahh, that's the part I didn't realize. I thought once it was renamed no new log entries would be written there. Glad to know this!

>AmI missing something or using logrotate as Corey is just fine?
>(I use logrotate for everything)

I was wondering about this too. Logrotate seems to be the easiest solution. However I wasn't sure if it would work the same way.  Is there a way to add a few seconds delay before Logrotate begins the compressing?


More information about the nginx mailing list