Message Log not rotating properly
Posted: Wed Sep 29, 2010 8:53 am
I was having an issue with the message log on my Amahi server not rotating properly. It was up to over the past few months and under previous install had filled up available space on root which resulted in me re-installing Amahi/Fedora.
After some digging and manually running they logrotate command ( logrotate -vf /etc/logrotate.conf ) and watching the output I determined that it was failing when it tried to run the postscript found in /etc/logrotate.d/syslog
Originally the file looked like this:
I commented it out like this:
and it fixed the problem and rotated the message log properly.
I also disabled greyhole as found here as I do not use it.
After some digging and manually running they logrotate command ( logrotate -vf /etc/logrotate.conf ) and watching the output I determined that it was failing when it tried to run the postscript found in /etc/logrotate.d/syslog
Originally the file looked like this:
Code: Select all
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
sharedscripts
prerotate
/usr/bin/greyhole --prerotate
endscript
postrotate
/usr/bin/greyhole --postrotate > /dev/null || true
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
Code: Select all
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
sharedscripts
# prerotate
# /usr/bin/greyhole --prerotate
# endscript
postrotate
# /usr/bin/greyhole --postrotate > /dev/null || true
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
I also disabled greyhole as found here as I do not use it.