Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > de2c0a3d9cabdc9cb040a37ebb3b5da5 > files > 3

logrotate-3.8.3-2.mga3.src.rpm

#!/bin/sh
# Mageia logrotate cron task

log=/tmp/$$$$
/usr/sbin/logrotate /etc/logrotate.conf >$log 2>&1
rc=$?
if [ $rc != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$rc]"
    /usr/bin/logger -t logrotate -f $log
fi
rm -f $log