Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 9fa2ca6100a640d54d6e017246d48929 > files > 3

logrotate-3.15.0-1.mga7.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