Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Cronjob not run after changed server date

SOLVED
Go to solution
Fauziah Mahdan
Super Advisor

Cronjob not run after changed server date

Dear all,

 

I changed server date to future date for some reason/testing.

Revert back to current date and found out the cronjob is not working.

 

Pls help

3 REPLIES
Patrick Wallek
Honored Contributor
Solution

Re: Cronjob not run after changed server date

Cron may have just gotten confused with the date changes.

 

Stop and restart cron and see if that helps.

 

# /sbin/init.d/cron stop

 

Make sure there are no cron processes running.

# ps -ef | grep cron

 

 

# /sbin/init.d/cron start

Fauziah Mahdan
Super Advisor

Re: Cronjob not run after changed server date

TQ.

At the same time I recreate the cronjob and it work.

TQ again

Patrick Wallek
Honored Contributor

Re: Cronjob not run after changed server date

Have you checked the 'cron' log file to see what it says?  The file is /var/adm/cron/log.