I have a daily cronjob set up on CentOS 6 OS which should look after the log rotation job. The file is /etc/cron.daily/logrotate and it's contents are #!/bin/sh/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1EXITVALUE=$?if [ $EXITVALUE != 0 ]; then    /usr/bin/logger -t logrotate ALERT exited abnormally with [$EXITVALUE]fiexit 0I expected that logs will be rotated as being activated by this daily cronjob but it isn't. I see no evidence that the daily cronjob is run from the log file /var/log/cron. However, the hourly jobs are run as shown by the log file. I have added a line on /etc/crontab  file# run-parts02 4 * * * root run-parts /etc/cron.daily but that made no change. I have no idea why this log rotation isn't working. I would be pleased if someone can shed some light. 
why daily cron isn't running on CentOS 6?
cron;logrotate