I did: systemctl enable mlocate-updatedb.service (no error) but it still does not seem to be enabled: ● mlocate-updatedb.service - Update a database for mlocate Loaded: loaded (/usr/lib/systemd/system/mlocate-updatedb.service; static; vendor preset: disable Active: inactive (dead)
Sep 19 23:15:02 teucidide systemd[1]: Stopped Update a database for mlocate. Sep 19 23:15:03 teucidide systemd[1]: Started Update a database for mlocate.
systemctl is-enabled mlocate-updatedb.service static
Is it OK ?
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
Sent: Monday, September 19, 2016 at 10:30 PM From: "Andy Blanchard" zocalo@gmail.com To: "Community support for Fedora users" users@lists.fedoraproject.org Subject: Re: anacron/cron
It *should* be running every day, but just checked my system and it's not enabled either and hasn't run for a week as well - possible bug? Anyway, to fix it, run the following commands (as root or via sudo):
systemctl list-timers --all
That *should* list a UNIT called "mlocate-updatedb.timer", but on my system it did not. To enable it, use the following command:
systemctl enable mlocate-updatedb.timer
You can also update the DB manually by running the script that calls:
/usr/libexec/mlocate-run-updatedb
Getting back to that "list-timers" command, all of systemd's timers are in "/usr/lib/systemd/system/" and have the extenstion "timer". Might be worth having a look and seeing what else you think should be running, but isn't...
Andy
On 19 September 2016 at 21:16, Patrick Dupre pdupre@gmx.com wrote:
-rw-r-----. 1 root slocate 30573186 Sep 12 15:40 /var/lib/mlocate/mlocate.db
This what I anticipated, The database has not been updated for a week !
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
Sent: Monday, September 19, 2016 at 10:11 PM From: "Joe Zeff" joe@zeff.us To: "Community support for Fedora users" users@lists.fedoraproject.org Subject: Re: anacron/cron
On 09/19/2016 01:04 PM, Patrick Dupre wrote:
How can I be sure that mlocate runs properly ?
If all else fails, run this as root:
ls -l /var/lib/mlocate/mlocate.db
and see when it was last updated. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
-- Andy
The only person to have all his work done by Friday was Robinson Crusoe _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org