[KLUG Members] slocate

Bruce Smith bruce at armintl.com
Tue Oct 25 09:28:37 EDT 2005


> > > > > I'm exploring slocate and note that I get a warning, "warning: slocate:
> > > > > warning:  database /var/lib/slocate/slocate.db' is more than 8 days
> > > > > old."
> > > > > The man page gives a command to create the db but no info on when or how
> > > > > it gets updated. Apparently this does happen as the db exists (I didn't
> > > > > create it) and seems reasonably up-to-date.  What is determining when
> > > > > and how it gets updated?
> > > > Cron, most likely.  Look beneath /etc/cron.d
> > > /etc/cron.d is an empty directory on my system (ls returns nothing)
> > 
> > Maybe there is a /etc/cron.daily, /etc/cron.weekly, etc... ?
> Found it in cron.weekly. 
> If machine is not on all the time, what determines when that runs?

Obviously it runs when your machine is turned off!  :-)

Those scripts are usually run from /etc/crontab, or a script it calls.
You should be able to determine the time from there.

They are probably set to run in the middle of the night, not to
interfere with normal users (probably when your machine is off).

You can just run the script manually, when you want it update it.

 - BS




More information about the Members mailing list