New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

What language for system administration do you use ?







( 732 votes ~ 3 comments )

 

Weblog entry #439 for simonw

logrotate postrotate running too often
Posted by simonw on Mon 30 Jan 2012 at 03:12
Tags: none.
I use logrotate postrotate trigger to produce weekly stats from websites in Apache2.

Occasionally the postrotate script appears to run on days when no log rotation has taken place. Is it just me? (I removed an unneeded apache.dpkg-dist file from logrotate.d (but assume this is handled sensibly). I guess I should check in the script to see if the date on the logfile is sensible before doing the report, but it just seems "wrong" to me that it seems to trigger apparently randomly and I'm sure there is some sort of reason.

 

 

 

Flattr