5 if [ -e /etc/sysconfig/logrotate ]; then
6 . /etc/sysconfig/logrotate
9 # NOTE: DISABLE_LOGROTATE_CRON is not official option to tune, it's only here to handle migration from < 3.8.6-1
10 [ "$DISABLE_LOGROTATE_CRON" = "yes" ] && exit 0
12 /usr/sbin/logrotate $ARG /etc/logrotate.conf "$@"
14 if [ $EXITVALUE != 0 ]; then
15 /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
16 if [ -n "$MAILTO" ]; then
17 echo "ALERT exited abnormally with [$EXITVALUE]" | mail -s "logrotate exited abnormally" $MAILTO