logrotate maillog?

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
premierhosting
Forum Regular
Forum Regular
Posts: 257
Joined: Wed Aug 04, 2010 2:52 pm

logrotate maillog?

Unread post 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.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: logrotate maillog?

Unread post 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
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Post Reply