[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: question about cron [FIXED]



inode0 wrote:
On 12/26/06, Bill Tangren <bjt aa usno navy mil> wrote:
I have one server on which it does not seem that the cron daemon is working. I use cron to do system backups and to rotate those backups (as well as quite a
few other things). None of them seem to be happening.

My question is, what do I look for in the logs to determine whether or not the
cron daemon is running, and if not, why not?

# chkconfig --list crond
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
# service crond status
crond (pid 3311) is running...

/var/log/cron may be helpful.

John


var/log/cron was what I needed. This is the last entry in /var/log/cron:

Dec 18 09:46:29 mach2 crond[3880]: (CRON) STARTUP (V5.0)
Dec 18 09:46:29 mach2 crond[3880]: (*system*) BAD FILE MODE (/etc/crontab)
Dec 18 09:46:32 mach2 anacron[3944]: Anacron 2.3 started on 2006-12-18
Dec 18 09:46:33 mach2 anacron[3944]: Normal exit (0 jobs run)


I googled on "BAD FILE MODE" and only came up with improper permissions on /etc/crontab. I had somehow set it to 700, when it needed to be 644. I think that fixed the problem.

Thanks everyone!




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]