Hi,
we reboot our Linux server yesterday and since then (specialy last night) no job from crontab has run. Any idea ? What should I look for to investigate?
Many thanks.
Hi,
we reboot our Linux server yesterday and since then (specialy last night) no job from crontab has run. Any idea ? What should I look for to investigate?
Many thanks.
one of the first things to do is check if the cron daemon is running or not. cron daemon is the process that runs in the background and schedules all cron jobs for execution.
thank you. How ? I did this :
ps -ef | grep cron
I have nothing from that.
Machine : Linux
Solutions:
This problem can be solved by editing, or removing then "reentering" the cronjobs again after Reboot using crontab -e.
or
I suppose you will be using crontab -e to edit the cron jobs.
You can use Cronnix to edit cron files. So whenever you restart your machine it will reenter all those jobs automatically.
or
After Reboot, if the cronjob is not running,
One can do
sudo /etc/init.d/cron restart
Logs can be seen in anyone of the two
/var/log/auth.log
/var/log/syslog.
Try this and let me know your observation.
Hope this will clear the problem.
Check the Process of cron. You will end up like this.
ps -eaf | grep cron.
root 12357 1 71 sep 02 - 3123:27 /usr/sbin/cron
root 561644 598403 0 10:03:59 pts/0 0:00 grep cron
Run the below command as ROOT.
sudo /etc/init.d/cron restart.
Thanks
Murugan
check the /var/cron/log for more clues I dunno what's the equivalent on linux.
Have you checked if there are other user cronjobs are running? if there are but that particular user cronjob not running could be that password aging has disabled that user, so if userid disabled cronjob will not fire, to enable just give it a new password - at least this happens on sun solaris - not sure abt linux tho.