Re: error for cron job slocate?

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

 



On Sat, 22 Oct 2005 00:35:08 -0400
Thom Paine <painethom@xxxxxxxxx> wrote:

> On 10/21/05, Richard E Miles <r.godzilla@xxxxxxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux