1
0
Fork 0
mirror of synced 2024-11-18 06:55:34 -05:00
formula-logrotate/logrotate/templates/logrotate.hourly.tmpl
2021-12-09 16:28:36 -07:00

9 lines
250 B
Bash

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