Package: locate
Version: 4.2.31-3
Severity: wishlist
Tags: patch
Dear all,
I would like to have an option (e.g., in /etc/updatedb.findutils.cron.local)
to DISABLE running updatedb. I prefer having mlocate installed (it is less
trashing on the disk cache, faster, etc). But I also have dlocate installed
which depends on locate, but does not use the locate database, but recreates
its own one from the /v/l/dpkg/info/*.list files.
So now mlocate and locate rebuild their databases daily.
I would like to disable the locate run. (BTW, others may want to decide
running the cron job only once a week or only manually, so the idea to
make admins to disable the cronjob might be interesting for them, too)
I have added the following to the cron job:
--- /etc/cron.daily/locate.orig 2007-12-03 07:07:44.000000000 +0100
+++ /etc/cron.daily/locate 2007-12-03 07:09:39.000000000 +0100
@@ -33,6 +33,9 @@
if [ -r /etc/updatedb.findutils.cron.local ] ; then
. /etc/updatedb.findutils.cron.local
fi
+if [ "$DISABLE_CRONJOB" = 1 ] ; then
+ exit 0
+fi
export FINDOPTIONS PRUNEFS PRUNEPATHS NETPATHS LOCALUSER NICE
if getent passwd $LOCALUSER > /dev/null ; then
and did echo "DISABLE_CRONJOB=1" >> /etc/updatedb.findutils.cron.local
so for me it is done, but the next update will destroy that ;-)
Thanks for your consideration and all the best
Norbert
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-rc3 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages locate depends on:
ii findutils 4.2.31-3 utilities for finding files--find,
ii libc6 2.7-3 GNU C Library: Shared libraries
locate recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]