Re: Locate question
On Mon, Jan 24, 2000 at 10:13:42PM +0100, Svante Signell wrote:
> Hello,
>
> Sometime during updates from slink to potato the locate database is
> not updated any longer. Anacron is running after a reboot, but the
> updatedb does not locate recent files. Can somebody enlightenment me
> how things are workingtogether:
> find, locate, update, updatedb, anacron and cron.
>
> Svante Signell
cron runs all entries in /etc/cron.d, which includes
/etc/cron.d/anacron. This contains log entries which frequently invoke
anacron.
anacron uses timestamp information from /var/spool/anacron/* to decide
when to run the daily, weekly and monthly jobs, which are stored in
/etc/cron.(daily|weekly|monthly).
/etc/cron.daily/find is run each day by anacron by virtue of being
in the /etc/cron.d directory. It contains the updatedb command.
locate uses the information produced by updatedb for fast file
searches.
A find command can be used for the same task as locate, but slower.
Find has a million and one options for specialised searches, though.
update is a command to periodically flush filesystem buffers, so I
think you might be onto a red herring here ... :-)
HTH.
--
Regards,
Paul
Reply to: