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

Re: [Debian]: whatis/locate



Hans Crauel schrieb am Sun, 31 May 1998 03:26:53 +0200 (MET DST):

>> locate sudo
>   locate: warning: database `/var/lib/locate/locatedb' is more
>   than 8 days old
> 
> Offenbar ist da mit irgendeiner Datenbasis was nicht in Ordnung.
> Irgendwo habe ich aufgeschnappt, dass man diese mit `makewhatis'
> anlegen muesse. Allerdings gibt es `makewhatis' nicht, und auch mit
> `dpkg -S' finde ich nichts. Was tun?
> 
> Oder ist `makewhatis' distributionsspezifisch, und unter Debian gibt
> es andere Werkzeuge, mit welchen die entsprechenden Daten- basen
> angelegt (und moeglichst laufend frisch gehalten) werden?

Es gibt Cron-Jobs zum Anlegen/Aktualiseren dieser Dateien.  Für locate
ist zum Beispiel /etc/cron.daily/find zuständig.  Wenn du nun deinen
Rechner ab und an ausschaltet, werden im schlimmsten Fall diese Jobs
nie ausgeführt.  Wenn das der Grund ist, empfehle ich dringend die
Installation des admin/anacron-Paketes:

 Anacron (like `anac(h)ronistic') is a periodic command scheduler.  It
 executes commands at intervals specified in days.  Unlike cron, it
 does not assume that the system is running continuously.  It can
 therefore be used to control the execution of daily, weekly and
 monthly jobs (or anything with a period of n days), on systems that
 don't run 24 hours a day.  When installed and configured properly,
 Anacron will make sure that the commands are run at the specified
 intervals as closely as machine-uptime permits.
 .
 This package is pre-configured to execute the daily jobs of the Debian
 system. You should install this program if your system isn't powered on
 24 hours a day to make sure the maintenance jobs of other Debian packages
 are executed each day.

Whatis wird auch durch solch ein Skript erschlagen
(/etc/cron.weekly/man-db).  Beide Skripte kannst du testweise (um zu
prüfen, ob das Nichtausführen das Problem ist) auch per Hand starten.

	Torsten

-- 
Der Horizont vieler Menschen ist ein Kreis mit Radius Null --
und das nennen sie ihren Standpunkt.
                                            Fortune Cookie
PGP Public key available
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <your_email_address>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     461


Reply to: