1 --- logrotate-3.7.9/examples/logrotate.cron~ 2010-06-28 11:04:56.000000000 +0300
2 +++ logrotate-3.7.9/examples/logrotate.cron 2010-07-12 10:42:34.890404991 +0300
6 -/usr/sbin/logrotate /etc/logrotate.conf
10 +if [ -e /etc/sysconfig/logrotate ]; then
11 + . /etc/sysconfig/logrotate
14 +/usr/sbin/logrotate $ARG /etc/logrotate.conf
16 if [ $EXITVALUE != 0 ]; then
17 - /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
18 + /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
19 + if [ -n "$MAILTO" ]; then
20 + echo "ALERT exited abnormally with [$EXITVALUE]" | mail -s "logrotate exited abnormally" $MAILTO