Files
zira-etc/cron.daily/logrotate
2021-05-24 22:18:33 +03:00

9 lines
189 B
Bash
Executable File

#!/bin/sh
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit $EXITVALUE