Page 1 of 1

logrotate maillog?

Posted: Sun Jan 08, 2012 12:40 am
by premierhosting
Hello,

This is probably a no-brainer but I'm stumped. It seems the logrotate for psa is not working, and I'm not sure how it's supposed to be fired.

The evidence is a maillog in /usr/local/psa/var/log/ that is growing huge since October. The settings that should rotate this log are here: /usr/local/psa/etc/logrotate.conf
/usr/local/psa/var/log/maillog.processed {
missingok
rotate 3
size 10M
compress
nocreate
}
However, can't seem to get it to fire. Is it supposed to be cron'd? cron.daily? The logrotate in cron.daily looks like this:
#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
So it's not pointing at the PSA logrotate. Should I just change it? Add it? Sorry if this is brain dead, I can't seem to find the right info on Plesk or google.

Re: logrotate maillog?

Posted: Sun Jan 08, 2012 3:18 pm
by faris
No. Don't touch. logrotate in cron.daily is meant to be like that.

Did you find http://forum.parallels.com/showthread.php?t=108997