Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 5872f73fb50a17df836f411b30e6e874 > files > 5

logrotate-3.7.5-9mdv2009.0.src.rpm

#!/bin/sh
# Mandriva logrotate cron task
# $Id: logrotate.cron 189740 2008-03-24 12:07:34Z guillomovitch $

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