error for cron job slocate?

Richard E Miles r.godzilla at comcast.net
Sat Oct 22 20:26:44 UTC 2005


On Sat, 22 Oct 2005 00:35:08 -0400
Thom Paine <painethom at gmail.com> wrote:

> On 10/21/05, Richard E Miles <r.godzilla at comcast.net> wrote:
> >
> > I get this message from the cron job run to do daily database (locate)
> > updates.
> >
> > /etc/cron.daily/slocate.cron:
> >
> > fatal error: updatedb: create_db(): rename: No such file or directory
> >
> > What could be causing this.
> >
> 
> What do you get if you run updatedb manually?
> 
> --
> -=/>Thom
> 

If I run it manually I dont't get any error message. Could this be the cron
job
#!/bin/sh
. /etc/updatedb.conf
[ "$DAILY_UPDATE" != "yes" ] && exit 0
nodevs=$(< /proc/filesystems awk 'BEGIN { f = 1; }
        $1 == "nodev" { if (!f) printf (","); f = 0; printf $2; }')
renice +19 -p $$ >/dev/null 2>&1 fault? This is what my daily cron scrit looks 
This is the /etc/updatedb.conf:
# Set DAILY_UPDATE to yes to enable running updatedb
DAILY_UPDATE=yes

PRUNEFS="selinuxfs usbdevfs NFS nfs afs sfs smbfs cifs autofs auto iso9660 udf"
PRUNEPATHS="/tmp /usr/tmp /var/spool/cups /var/spool/squid /var/tmp /afs /net /sfs /selinux /udev /media"


-- 
Richard Miles
Federal Way WA. USA
registered linux user 46097




More information about the fedora-list mailing list