Re: crond/anacron problem

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

 



On 5/16/06, Mikkel L. Ellertson <mikkel@xxxxxxxxxxxxxxxx> wrote:
Wong Kwok-hon wrote:
> On 5/15/06, Jim Cornette <fc-cornette@xxxxxxxxxxxxxx> wrote:
>> Joel Gomberg wrote:
>> > Wong Kwok-hon wrote:
>> >> On 5/14/06, Jim Cornette <fc-cornette@xxxxxxxxxxxxxx> wrote:
>> >>> Wong Kwok-hon wrote:
>>
>> This message showed up again on a mail receipt. I still have the message
>> afterall.
>>
>> > See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=191410
>>
>> After reading the bug report, I am a little confused as to whether the
>> cron.daily version should be run to correct the time information or if
>> anacron should be stopped from running as a service.
>>
>> Does the reported version not run because it is disallowed by the lock
>> file? Why prevent the daily version from running?
>>
>>
>> Should we stop the service or stop the daily run?
>>
>
> Oh...yes... Which one is the best solution ? Stop anacron or stop the
> daily run on cron ??
>
> Wong Kwok Hon
>
If your machine is running 24/7, you do not need to run Anacron. The
reasion for Anacron is to run the cron jobs that didn't run because
the machine was turned off when they should have been run.

Unless they have changed the way Anacron works, you need to have
Cron running in order for Anacron to function correctly. But you do
not need Anacron running in order for Cron to work correctly.

Mikkel
--

Thanks and I fixed the problem on looking the bugzilla. I made the
modification  as follows:

Comment #7 From Markku Kolkka  on 2006-05-15 11:13 EST [reply]

The problem can be fixed by changing the /etc/cron.daily/0anacron script:

#!/bin/sh
#
# anacron's cron script
#
# This script updates anacron time stamps. It is called through run-parts
# either by anacron itself or by cron.
#
# The script is called "0anacron" to assure that it will be executed
# _before_ all other scripts.

# Don't run anacron if this script is called by anacron.
if [ ! -e /var/run/anacron.pid ]
   then anacron -u cron.daily
fi

/etc/cron.weekly/0anacron and /etc/cron.monthly/0anacron scripts need a similar
change.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[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