locate/updatedb stops working in suse 8.0 pro
Hi everyone, Im having a problem with the updatedb cronscript in that its stopped working for some reason. I know findutils doesnt come installed as default on suse 8.0 pro, so i have installed it (and reinstalled it). RUN_UPDATEDB = "yes" in /etc/sysconfig/locate and the prune paths are all OK. Ive figured out that when /etc/cron.daily/updatedb runs it exits straight away and replaces /var/lib/locatedb with a 10 byte file containing the following: .LOCATE02 Which is the standard start to the locatedb file (null terminated) so its basically creating an empty database. After going through the cron script step by step, ive found the lines that are causing the problem: PARAMS="`test -n "$RUN_UPDATEDB_AS" && \ fgrep localuser /usr/bin/updatedb > /dev/null && \ echo --localuser=$RUN_UPDATEDB_AS`" If i comment these lines out, but leave all the other PARAMS= lines in, it works without a problem, but i just cant figure out why this line should be breaking it, its set as the default in /etc/sysconfig/locate: mail:~ # cat /etc/sysconfig/locate |grep RUN_UPDATEDB_AS RUN_UPDATEDB_AS="nobody" Anyone have any ideas why this isnt working? Thanks in Advance Adam Daniel -- Technical Consultant ----------------------------------------------------------------------- FORENSIC DATA SERVICES PTY LIMITED http://www.forensicdata.com.au ------------------------------------------------------------------------ The information contained in this e-mail is confidential and is intended solely for the addressee. If you received this e-mail by mistake please notify us immediately and delete all copies of this message. You must not disclose or use in any way the information in the e-mail. It is the responsibility of the recipient to virus scan this e-mail and any attachments included.
participants (1)
-
Adam Daniel