Re: cron.weekly

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

 



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:
#!/bin/bash
# wait for 3:02 when /etc/crontab runs cron.daily
if [ `date +%H` -le 4 ]; then
   exit 0;
fi
This would explain why it is not working properly for both me and the OP.

--
Jerry Feldman <gaf@xxxxxxx>
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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux