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

Re: Anacron schedule

On Mon, Mar 05, 2001 at 03:58:10PM -0600, Judith Elaine Bush wrote:
> On Mon, Mar 05, 2001 at 09:12:33PM +0100, Erdmut Pfeifer wrote:
> > 
> > as there is /etc/crontab for cron, there is a /etc/anacrontab for anacron.
> Indeed. Except the /etc/anacron specifies frequency (how many days
> apart should something be done) and delay (how long after anacron is
> invoked shoud something be done). The /etc/anachron file does *not*
> run anacron just after 7 am every morning.
> > The suggested "test -x ..." lines in crontab are just to disable those
> > entries temporarily while anacron is installed. This way, if you decide
> So, /etc/crontab is NOT where anacron is invoked. Somehow anacron is
> invoked around 7 am each day. If it's not in /etc/crontab, where is
> it?

sorry, I guess I didn't read your mail carefully enough...

I think what you are looking for is /etc/cron.d and the files therein.
Typically, when anacron is installed, there is a file /etc/cron.d/anacron
containing the line

30 7    * * *   root    test -x /usr/sbin/anacron && /usr/sbin/anacron -s                       

which explains the activity around 7 am you see.

The feature that cron is treating the files in /etc/cron.d as extensions
to /etc/crontab is a debian-specific modification of the regular cron
behaviour -- see the section "DEBIAN SPECIFIC" in man cron.

hope that helps now ;)

Erdmut Pfeifer
science+computing gmbh

-- Bugs come in through open windows. Keep Windows shut! --

Reply to: