Re: Install only? and slocate (update for mlocate)

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

 



Miloslav Trmac wrote:
Jim Cornette wrote:

The notes referenced the below:

7.1.4. Enabling the slocate Database

The database needed by the locate utility is no longer created by
default. Enable the database creation by setting DAILY_UPDATE to yes in
/etc/updatedb.conf if you want to use locate.

This is not correct any more, mlocate's updatedb actually terminates
with an error if such a variable is defined in /etc/updatedb.conf.
	Mirek


The updatedb.conf file did not look anything close to what the reference in the release notes described. I left the file untouched.

As a correction to running locate immediately after firstboot with results, it appears that my sysyem had to be on longer than that for the database to update. mlocate now runs updatedb daily. References to slocate in any documentation should be removed, except for historical or comparative references.

cat /etc/cron.daily/mlocate.cron
#!/bin/sh
nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }')
renice +19 -p $$ >/dev/null 2>&1
/usr/bin/updatedb -f "$nodevs"

Jim


--
Fundamentally, there may be no basis for anything.

--
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]