6 if [ -e /etc/sysconfig/logrotate ]; then
7 . /etc/sysconfig/logrotate
10 /usr/sbin/logrotate $ARG /etc/logrotate.conf
12 if [ $EXITVALUE != 0 ]; then
13 /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
14 if [ -n "$MAILTO" ]; then
15 echo "ALERT exited abnormally with [$EXITVALUE]" | mail -s "logrotate exited abnormally" $MAILTO