Log file rotation script

Dave Cheney dave at cheney.net
Tue Jun 10 17:06:46 MSD 2008


There is no log rotate on OS X by default, rather than figure out how  
to install it and deal with its vagaries, this 5 minute script does  
the job.

Rt, FWIW, with my script any pending log entires are written to the  
previous days log file at rollover, none are lost.

On 10/06/2008, at 8:40 PM, Aníbal Rojas wrote:

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






More information about the nginx mailing list