My cron jobs has stopped running

HappymanUK

Well-Known Member
May 3, 2003
255
1
168
I had a cron job set to run daily that was a backup script that FTP'd backup files to a remote server.

Since one of the cpanel updates this has stopped running - Although I can see if listed in the cron file.

Any ideas what I could do to fix this issue ?

Any help appreciated.

Thanks
Daniel
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Check if crond is still running:

Code:
ps aux | grep crond
If it isn't, then restart it:

Code:
/etc/init.d/crond restart
If that is not the issue, then what does /var/log/cron show for the cronjob in question?

Code:
grep cronname /var/log/cron
Replace cronname with the name of the cronjob file.
 

HappymanUK

Well-Known Member
May 3, 2003
255
1
168
ps aux | grep crond shows:

root 27065 0.0 0.0 4628 676 pts/0 D+ 19:02 0:00 grep crond

The last entry in /var/log/cron shows as Sept 16th 2011.

Something is definitely not quite right....

Any ideas ?

Thanks
Daniel
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Yes, restart crond, because it isn't running. Your return was the grep on crond itself not crond running. Again, it is:

Code:
/etc/init.d/crond restart
 

HappymanUK

Well-Known Member
May 3, 2003
255
1
168
Thanks.

That resulted in the following (which makes sense):

Stopping crond: [FAILED]
Starting crond: [ OK ]

I'll see how it goes.

Thanks again,

Daniel