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

Bug#2791: locate seg faults if locatedb too big



On Mon, 22 Apr 1996, Craig Sanders wrote:

> BTW, maybe this should go in a separate bug report, but I think that the
> configuration for updatedb should go in a separate config file (maybe
> /var/lib/locate/config), so that I don't lose the config whenever I
> upgrade findutils.

That's not necessary.  Instead of editing updatedb, just edit
/etc/cron.daily/find, which is a conffile.  Then you won't lose your
changes when you upgrade findutils.  You can program updatedb with
arguments or environment variables.

For example, here is my find cron script:

PRUNEPATHS="/proc /tmp /usr/tmp /var/tmp /cdrom /floppy /mnt"
export PRUNEPATHS
su nobody -c "cd / && updatedb" 2>/dev/null

Guy


Reply to: