From owner-freebsd-questions Sun May 14 21:29:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by hub.freebsd.org (Postfix) with ESMTP id 3746A37B637 for ; Sun, 14 May 2000 21:29:14 -0700 (PDT) (envelope-from papalia@udel.edu) Received: from morgaine.udel.edu (morgaine.wondermutt.net [192.168.1.2]) by wondermutt.net (8.9.3/8.9.3) with ESMTP id AAA10259 for ; Mon, 15 May 2000 00:29:55 -0400 (EDT) (envelope-from papalia@udel.edu) Message-Id: <4.3.1.2.20000515000015.00ac5100@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Mon, 15 May 2000 00:32:56 -0400 To: freebsd-questions@freebsd.org From: John Subject: locate database disappears Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I'm having a bit of a time trying to figure out this problem.... currently, my /var/db/locate.database is about 500 bytes in size. I run /usr/libexec/locate.updatedb and, like it's supposed to, the locate database is rebuilt. New size is about 701k. Great. All my locate requests work. Then, /etc/weekly runs at the end of the week. Whamo. The entire locate database is set back to about 500 bytes in size again. I've finally managed to trace this back to being "caused" by /etc/periodic/weekly/310.locate, which I've pasted below (it's the standard plain-old version that was installed during a make world - I haven't modified it at all). I've yet to figure out *why* though? Any thoughts? I'm running 3.4-stable now, and this problem didn't come into being until I had upgraded from 3.3-stable to 3.4-stable. Thanks!!! --John /etc/periodic/weekly/310.locate: locdb=/var/db/locate.database if [ -x /usr/libexec/locate.updatedb -a -f $locdb ] ; then echo "" echo "Rebuilding locate database:" touch ${locdb}; chown nobody ${locdb}; chmod 644 ${locdb} cd / echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody chmod 444 ${locdb} fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message