Message Log not rotating properly

afterspencer
Posts: 9
Joined: Mon Jul 12, 2010 12:52 pm

Message Log not rotating properly

Postby afterspencer » 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:

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Message Log not rotating properly

Postby bigfoot65 » Wed Sep 29, 2010 9:04 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

afterspencer
Posts: 9
Joined: Mon Jul 12, 2010 12:52 pm

Re: Message Log not rotating properly

Postby afterspencer » Wed Sep 29, 2010 9:32 am

Bug has been filed.

Thanks for all the hard work on this great project.

Who is online

Users browsing this forum: No registered users and 52 guests