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
etc...

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
etc.

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.

2 comments

Comments are closed.

You May Also Like

Postfix queue tools

Here are a few handy items for Postfix email server users: 1.…

How to Turn PHP into an RPM The Easy Way with FPM

So you have a custom PHP binary that you wish to distribute…

Password Protected Folder Gives 404 Not Found in WordPress Installation Sub-folder.

Came across this little maddening issue again today after fixing it a…

Social Media and the Downfall of the Password Reset Question

There have been a number of high profile account compromises due to…