Страница 1 из 1
updatedb?
Добавлено: 24 июн 2017, 10:39
Gerardll51
Bonjour,
Est-ce que la commande updatedb fonctionne par défaut de temps en temps toute seule ou est-ce qu'il nous faut la lancer manuellement?
Voyant mon disque dur tourner comme un malade, en cherchant je me suis rendu compte que c'est cette commande qui fonctionnait.
Voilà, si vous avez cinq minutes.
Re: updatedb?
Добавлено: 24 июн 2017, 14:31
sylvainsjc
Hello,
Oui c'est la mise à jour de la commande "locate"
Tu devrais trouver la mise à jour dans un fichier contenu dans "/etc/cron.daily" normalement
Re: updatedb?
Добавлено: 25 июн 2017, 00:45
Gerardll51
Ah tiens salut Sylvain!
Ah ok merci de l'info.
Je savais que c'était pour mettre à jour la base de donnée de la commande locate. Mais je ne savais pas que cette commande démarrait toute seule.
Jusqu'à présent je la lançais avant de lancer une commande locate quand ça faisait un bout de temps que je ne l'avais pas fait.
Visiblement là, ça fonctionne tout seul d'après ce que j'ai vu.
Sinon, j'ai ça dans /etc/cron.daily :
Код: Выделить всё
[gerard@linux cron.daily]$ ll
total 48
-rwxr-xr-x 1 root root 109 sept. 15 2014 0anacron-timestamp*
-rwxr-xr-x 1 root root 15142 mai 9 06:44 google-chrome*
-rwxr-xr-x 1 root root 1 oct. 6 2016 google-earth*
-rwxr-xr-x 1 root root 256 avril 15 2016 logrotate*
-rwxr-xr-x 1 root root 553 août 29 2014 man-db.cron*
-rwxr-xr-x 1 root root 136 août 29 2014 mlocate.cron*
-rwxr-xr-x 1 root root 187 févr. 26 2015 rkhunter*
-rwxr-xr-x 1 root root 50 oct. 13 2016 rpm*
-rwxr-xr-x 1 root root 491 janv. 11 2016 tmpwatch*
Bon je ne sais pas à quel fichier correspond la mise à jour pour la fonction locate là-dedans.
Re: updatedb?
Добавлено: 25 июн 2017, 00:52
sylvainsjc
C'est ce fichier :
Код: Выделить всё
-rwxr-xr-x 1 root root 136 août 29 2014 mlocate.cron*
Si tu le supprimes, updatedb ne sera plus lancé automatiquement
Re: updatedb?
Добавлено: 25 июн 2017, 10:35
Gerardll51
Ah ok, merci de l'info. C'est bon à savoir.
Pour l'instant je vais quand même laisser comme ça. La commande locate me sert quand même de temps en temps.