The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-31-2008
dvrmc dvrmc is offline
Registered User
 

Join Date: Jan 2008
Posts: 2
logrotate doesn't do daily rotation....help required

Hi,
I am using logrotate 3.7.4-13
-When i specify both "size" and "daily/weekly/monthly" , the logs are being rotated only based on size and the period is not being considered.
-When i just specify "daily/weekly/monthly" (with no size parameter), the logs are being rotated accordingly.

Would like to know what the problem is. If its a bug,Was it fixed in the latest rpms?

One more question - How does "daily rotation" work? Is the file rotated after 24hrs from its time of creation? or at 00:01 everyday??

Btw, I have a cronjob that runs every minute. My requirement is that, log files are to be rotated based on both size and period which ever comes first.

Last edited by dvrmc; 01-31-2008 at 04:23 AM. Reason: incomplete description for someone to suggest a solution
Reply With Quote
Forum Sponsor