cron/anacron

Frank McCormick fmccormick at videotron.ca
Fri May 12 01:33:10 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 11 May 2006 17:58:50 +0200
Alan McKinnon <alan at linuxholdings.co.za> wrote:

> On Thursday 11 May 2006 15:13, Frank McCormick wrote:
> > On Wed, 10 May 2006 21:21:29 +0200
> >
> > Alan McKinnon <alan at linuxholdings.co.za> wrote:
> > > There is no problem with cron and anacron, the problem is that
> > > you have not thought it through. How does anacron know when to
> > > run, and what starts it? Easy! It is run once an hour... from
> > > cron! Once an hour the system checks for tasks that were skipped.
> > >
> > > cron's config file is /etc/crontab
> > > anacron's config file is /etc/anacrontab
> > > The /etc/cron.*ly files have nothing whatsoever to do with cron
> > > or anacron. They are config files for run-parts (a convenient way
> > > to run several scripts rather than individual cron entries for
> > > each. Both cron and anacron run run-parts to do their thing.


      I wondered what this run-parts was! Now I get it

> >
> >    Sorry for the double reply but I just noticed there is no job
> > entry in anacrontab for cron.hourly. There are entries for
> > cron.daily, cron.weekly and cron.monthly. Is this why some job(s)
> > never run ??
> 
> That's quite common actually. Most system tasks are fine if run daily, 
> and the infrastructure is there to do tasks hourly if you want it. 
> Ubuntu seems to have taken the same view as most other distros, and 
> not set up any hourly anacrons.
> 
> You can set it up if you want - add the appropriate line to 
> anacrontab, write a script to do the task you want and put it in 
> cron.hourly.
> 

   Actually I can't think of anything I need run once an hour...I just thought may be the missing files were
connected somehow to my system not running updatedb.




- -- 
Cheers

Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEY+XW8Rvr3Tn207ARAlBCAJ9tsbKpEQrEPpQh5uVcEpf1kDknXwCfQzPW
q3m8jDrhLlSRJ1uiW+LRDpg=
=a/N+
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list