Saltstack Official Logrotate Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
250B

  1. #!/bin/sh
  2. {{ logrotate.bin }} -s {{ logrotate.status_dir }}/logrotate.hourly.status {{ logrotate.hourly_conf_file }}
  3. EXITVALUE=$?
  4. if [ $EXITVALUE != 0 ]; then
  5. /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
  6. fi
  7. exit 0