Exim log rotation
I'd like to rotate my exim logs weekly instead of daily.
In /etc/cron.daily/exim there's:
# Cycle logs
if [ -x /usr/bin/savelog ]; then
for i in mainlog rejectlog paniclog; do
if [ -s /var/log/exim/$i ]; then
savelog -p -c 10 /var/log/exim/$i >/dev/null
fi
done
fi
I could move that bit of code into a new script in cron.weekly, but I'm
wondering if there's a better way -- I'm worried that updating exim
package in the future will then update that cron.daily script and then
I'll have two rotation schemes going.
Is there a reason why logrotate isn't used for exim? savelog doesn't
seem to have much for features.
--
Bill Moseley
moseley@hank.org
Reply to: