logrotate.cron 268 B

12345678910111213141516
  1. #! /bin/sh -
  2. #
  3. # /etc/cron.daily/logrotate - Rotates system logs periodically.
  4. #
  5. /usr/sbin/logrotate /etc/logrotate.conf
  6. status=$?
  7. if test $status -ne 0
  8. then
  9. /usr/bin/logger \
  10. -t logrotate "ALERT exited abnormally with exit status $status"
  11. fi
  12. exit $status