cron/anacron no longer running after changing date

Kernels & Hardware, configuring network, installing services

cron/anacron no longer running after changing date

Postby debidant » 2018-08-14 08:09

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.
debidant
 
Posts: 25
Joined: 2016-10-27 13:23

Re: cron/anacron no longer running after changing date

Postby bw123 » 2018-08-14 12:08

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
User avatar
bw123
 
Posts: 3532
Joined: 2011-05-09 06:02
Location: TN_USA


Return to System configuration

Who is online

Users browsing this forum: broelling and 9 guests

fashionable