Page 1 of 1

Message Log not rotating properly

Posted: Wed Sep 29, 2010 8:53 am
by afterspencer
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:

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 commented it out 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 }
and it fixed the problem and rotated the message log properly.

I also disabled greyhole as found here as I do not use it.

Re: Message Log not rotating properly

Posted: Wed Sep 29, 2010 9:04 am
by bigfoot65
Thanks for the solution. Sounds like a bug. Can you please go to http://bugs.amahi.org and file a report. This will ensure we don't lose sight of it and can work a solution for future releases.

Re: Message Log not rotating properly

Posted: Wed Sep 29, 2010 9:32 am
by afterspencer
Bug has been filed.

Thanks for all the hard work on this great project.