logrotate.cron 189 B

12345678
  1. #!/bin/sh
  2. /usr/sbin/logrotate /etc/logrotate.conf
  3. EXITVALUE=$?
  4. if [ $EXITVALUE != 0 ]; then
  5. /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
  6. fi
  7. exit $EXITVALUE