On Tue, 28 Dec 1999, Don  Head wrote:

> Running them at the end of the install, or on the first bootup after an
> install, sounds like a winning plan.
> 
> I would also consider them eligable for a weekly or monthly cron job,
> installed by default (if the software packages are installed).  In my 6
> years with Linux, I didn't know these existed until a few months ago.  I'm
> sure many other people don't know, especially newbies.  Having the updating
> of these databases automated on a regular basis would make things a little
> easier.

Don, updatedb is supposed to be set up for daily cron - you can see the burst
of heavy activity at around 4 am.

The big problem however is that cron is used, rather than the newer one
(anacron?) that runs things that have missed their time anyway.     This cron
makes no sense in the LinuxPC world, because the great majority of machines
are switched off at 4 am.

A much better solution would be for locate to cause the updating when it is
necessary before it responds.     It presently has the smarts to complain when
updatedb has not been run for 8 days or more.      This would require all the
filesystems to set a global flag when any new files or deletions have been
made or when mounted or unmounted which locate would use to trigger updatedb
for those filesystems only and then clear the global flag.

It's more complex for makewhatis (which has no cron), because the whatis and
apropros commands must be sensitive to the addition or deletion of man files
so that they can trigger makewhatis when necessary.    Perhaps the rpm
post-install scripts should look after this.

 -- 

Regards,

Ron. [AU] - sent by Linux.

Reply via email to