Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > cde31a784f1e60144815d2d91559e30b > files > 7

logrotate-3.7.9-3.1.mga1.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