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

Re: crond/anacron problem

On 5/16/06, Mikkel L. Ellertson <mikkel infinity-ltd com> wrote:
Wong Kwok-hon wrote:
> On 5/15/06, Jim Cornette <fc-cornette insight rr com> wrote:
>> Joel Gomberg wrote:
>> > Wong Kwok-hon wrote:
>> >> On 5/14/06, Jim Cornette <fc-cornette insight rr com> 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.


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:

# 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

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

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