1
0
Fork 0
mirror of synced 2024-10-29 23:18:56 -04:00
formula-logrotate/logrotate/templates/logrotate.hourly.tmpl

10 lines
250 B
Cheetah
Raw Normal View History

#!/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