Help - Search - Members - Calendar
Full Version: Apache getting "stuck" (UpdateDB)
The Planet Forums > System Administration > General Support Questions
lucho
Hi,

My xeon dual servers are getting stuck every day at the same hour (at 4:30 AM before change systems date), thats why I think the problem may be on the "updateDB" daily cron.

Does anyone know how to disable this cron?

I just edit /etc/cron.daily/slocate.cron and coment this lines:

#renice +19 -p $$ >/dev/null 2>&1
#/usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net"

Is that correct? there are other way?

Thanks,

Lucho
chirpy
That will stop it running. You may have a corrupt slocate database which you can delete and recreate. To delete, just remove /var/lib/slocate/slocate.db

slocate is a bit sensitive sometimes and can get upset with certain symlinks and file names. If you wanted to track down where the problem might be, you could remove the file above, then run slocate interactively:
CODE
#/usr/bin/updatedb -v -f "nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.