Page 1 of 1

anacron not running cron.daily scripts

Posted: 2012/08/24 21:45:24
by dotmil
Hi all,

I have a server running CentOS 6.3 and have run into a problem. I know about the change to use anacron to run scheduled jobs, but for some reason on this server it only runs jobs in cron.hourly. It never moves on to cron.daily or monthly. The anacrontab is set to the default and /etc/crontab is empty.

If I run anacron -s manually then it runs the daily scripts however. Any ideas why this isn't working automatically? Any suggestions are appreciated.

anacron not running cron.daily scripts

Posted: 2012/08/25 08:52:59
by jvalencia
check /var/log/cron for errors

are your jobs working correctly?

show your cron.daily directory

Re: anacron not running cron.daily scripts

Posted: 2012/08/27 15:51:00
by dotmil
[quote]
jvalencia wrote:
check /var/log/cron for errors

are your jobs working correctly?

show your cron.daily directory[/quote]

Nothing shows errors, but the dates never update. This was the last manual run and last mention of logrotate;
Aug 24 21:32:34 edgar run-parts(/etc/cron.daily)[52962]: starting logrotate
Aug 24 21:32:34 edgar run-parts(/etc/cron.daily)[52976]: finished logrotate

All jobs work correctly when run manually

Contents of /etc/cron.daily:
[/etc/cron.daily]# ls
./ logrotate* maldet* prelink* tmpwatch*
../ makewhatis.cron* mlocate.cron* readahead.cron*


Thanks

Re: anacron not running cron.daily scripts

Posted: 2012/09/02 12:15:02
by dotmil
Any ideas?

Re: anacron not running cron.daily scripts

Posted: 2012/09/14 07:44:26
by aniserg
yum install cronie
service crond start

--
gl&hf