Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > cdbd7f76dd533cb4dd0451e33e760282 > files > 1

logrotate-3.8.7-2.mga4.x86_64.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