[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: cron.weekly

On 12/14/2008 09:30 AM, Tom Horsley wrote:
On Sun, 14 Dec 2008 14:18:50 +0000 (GMT)
Patrick Dupre wrote:

If crond was interrupted for some reasons, does anacron would restart it
at 12:11 ?

I can't for the life of me figure out when anacron decides to do what,
I just know that things are less confusing without it :-).

Admittedly I'm coming in a bit late on this, but I've had a similar issue with cron.daily and anacron. I changed my /etc/crontab to run cron.daily at 2 minutes after 1.
02 1 * * * root run-parts /etc/cron.daily
22 1 * * 0 root run-parts /etc/cron.weekly

All well and good.

But, I saw that anacron ran daily at 6PMlast night.
-rw-------  1 root root    9 2008-12-19 18:26 cron.daily

However, my system had frozen up sometime after 7:50AM.

Previously I had manually updated /var/spool/anacron/cron.daily by manually editing the date in the time, and setting the timestamp with touch. However, I did not see the file updated from the time I set it until 6PM last night.
Actually, the 0anacron entry in /etc/cron.daily starts with:
# wait for 3:02 when /etc/crontab runs cron.daily
if [ `date +%H` -le 4 ]; then
   exit 0;
This would explain why it is not working properly for both me and the OP.

Jerry Feldman <gaf blu org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB  CA3B 4607 4319 537C 5846

Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]