This seems like a pretty rare bug but annoying anyway. On my system I found that when logrotate would run, some log files such as /var/log/maillog did not rotate properly.

Typically, logrotate works like

Write to maillog
Daily, move maillog to maillog.1
Daily, move maillog.1 to maillog.2

However it was going

Write to maillog,
Daily, move maillog to maillog.1, keep writing to maillog.1
Daily, move maillog.1 to maillog.2, keep writing to maillog.2

According to this bug tracker entry and this post, it is a problem with the version of logrotate, and people having the /tmp directory on a separate mount (I did not even have mine set to noexec like I should have, and I still had this problem [fixed now, by the way]).

It is easily fixed by installing the version of logrotate from the CentOS fasttrack repository [link]. After installing this, it looks like logrotate is rotating the log files correctly.


Comments are closed.

You May Also Like

Using 3G/UMTS/HSDPA Network with Cingular/AT&T 8525 on the Nokia N800

When I bought the Nokia N800 a key feature is not only…

Apache mod_status and page not found 404

Problem: Checking the apache server status with the command “apachectl status”, “service…

Fixing terminal page up and page down

If you use a windows ssh terminal client, or even macosx’s,…

Automatically Rip DVD using Handbrake and Autoplay (XP)

I am currently copying my DVD collection to my PC for use…