🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #59685

Re: updatedb run from cron

#59685
From: Craig Sanders
Date: Sat, 09 Dec 1995 00:00
35 lines
1847 bytes
hamish@rising.com.au (Hamish Moffatt) writes:

>Saturday December 02 1995 10:32, andymac@BULLSEYE.APANA.ORG.AU wrote:

> > My Slackware 2.3 (Infomagic Aug '95) Linux systems, with kernels
> > upgraded to 1.2.13, both have the same small problem...
> >
> > find: /proc/self/fd/4: No such file or directory find:
> > /proc/self/fd/4: No such file or directory
> >
> > Can anyone give me any hints towards figuring out what is going on??

/proc/self/fd/4 is a reference to file descriptor 4 which is used by the
updatedb process itself - it's probably only a temporary file which gets
created and deleted quickly hence the error message.

> I had the same problem with 1.2.9 (possibly 1.2.8). I upgraded to
> 1.3.35, and it runs fine now. <shrug>

You can also edit the /usr/bin/updatedb shell script so that it doesn't
include /proc in the database.  I also find it useful to exclude
/usr/spool/news and some other directories.

I've been doing this since slackware 2.0 or possibly even earlier with
no problems.

Search for a line that looks like this and edit it accordingly:

# Directories to not put in the database, which would otherwise be.
: ${PRUNEPATHS="/proc /tmp /usr/tmp /var/tmp /afs /amd /net"}

You can also pass the prunepaths to updatedb on the command line -
examine the shell script for the syntax.

Craig
Technical Details
Message-ID: <4ab1se$lr4@muffin.pronet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4969FA55@rising.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,8eb98deffc1fb496
X-Google-Attributes: gid102983,public
From: cas@muffin.pronet.com (Craig Sanders)
Subject: Re: updatedb run from cron
Date: 1995/12/09
Message-ID: <4ab1se$lr4@muffin.pronet.com>
X-Deja-AN: 121239924
references: <4969FA55@rising.com.au>
organization: Utility Muffin Research Kitchen
x-no-junk-mail: Do not add me to any mailing list(s) without my express request.
newsgroups: aus.computers.linux