Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > c69e35a9fa165376d63fcfd389a8eb2f > files > 3

logrotate-3.20.1-1.mga9.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