Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

cron/anacron no longer running after changing date

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
debidant
Posts: 26
Joined: 2016-10-27 13:23

cron/anacron no longer running after changing date

#1 Post by debidant »

Hi,

I'm on Stretch and for testing a web application dealing with date and time I had to change my system date to january 2018 and december 2018 temorarily.

I know this was stupid but as the customer was pushing me I had no alternative (I have a VM with apache now).

Problem is: since then cron/anacron jobs are no longer running when they are due. Is there some file or anything else from which cron/anacron know when they last ran so I can reset it to current time/date?

Thank you in advance.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: cron/anacron no longer running after changing date

#2 Post by bw123 »

Check in /var/spool/anacron or maybe first try to unstick it with an option. If you can get it to run once it will probably be fine.

Code: Select all

$ man anacron
# anacron -u
resigned by AI ChatGPT

Post Reply