From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 16:59:05 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F07EB1065672; Thu, 10 Jul 2008 16:59:05 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id A23298FC18; Thu, 10 Jul 2008 16:59:04 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m6AGwvk1011758; Thu, 10 Jul 2008 17:58:58 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.6.0 smtp.infracaninophile.co.uk m6AGwvk1011758 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1215709138; bh=Ul/xjmnVnpnVmF pG6D8VBAd3wwk4pZOQVOIQQGO49Dc=; h=Message-ID:Date:From:MIME-Version: To:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<48763FC8.2090107@infracaninophile.co.uk>|Date:=20Thu,=2 010=20Jul=202008=2017:58:48=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.14=20(X11/20080607)|MIME-Version:=201 .0|To:=20Daniel=20Gerzo=20,=20=0D=0A=20Roger=20 Olofsson=20,=0D=0A=20FreeBSD=20|Subject:=20Re:=20Locate=20command|References:=20<20 080710150008.GD99511@remdogbsd>|In-Reply-To:=20<20080710150008.GD99 511@remdogbsd>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipa rt/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"applicati on/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig1D46AD73E5 EB8D0315E05898"; b=NFhHS+05j93rXMFUw3wagD6NYrAHlCezFdRXSU+icj9YkFNM rAg8W6DmCpe0LFeUYGSnX4xaGBbOmrUrdPOusEl8r6orXrMVaFzoFU3BAun0VZVE1n0 MsBtIgQ/pqGAMxXpzh8Juo+0K1ucmShOC48H/I+Cbf+Zcf0vukMOBjQg= Message-ID: <48763FC8.2090107@infracaninophile.co.uk> Date: Thu, 10 Jul 2008 17:58:48 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.14 (X11/20080607) MIME-Version: 1.0 To: Daniel Gerzo , Roger Olofsson , FreeBSD References: <20080710150008.GD99511@remdogbsd> In-Reply-To: <20080710150008.GD99511@remdogbsd> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig1D46AD73E5EB8D0315E05898" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Thu, 10 Jul 2008 17:58:58 +0100 (BST) X-Virus-Scanned: ClamAV 0.93.1/7686/Thu Jul 10 16:27:03 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Subject: Re: Locate command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 16:59:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1D46AD73E5EB8D0315E05898 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Rem P Roberti wrote: >> Hello, >> >>>> Actually, the very first thing I always do after installing a FreeBS= D is >>>> add this line to crontab: >>>> >>>> 00 02 * * * /usr/libexec/locate.updatedb >>>> >>>> I guess I'm a locate-freak ;^D >>>> >>> Done. Thanks again. >> You guys should rather use /etc/periodic/weekly/310.locate script >> to update your locate database. >=20 > I'm pretty new to all of this, so how does one go about invoking that > script? Well, to run it by hand you type: /etc/periodic/weekly/310.locate Otherwise it will be run automatically by the periodic(8) system.=20 It is enabled by default: happy-idiot-talk:~:% grep locate /etc/defaults/periodic.conf=20 # 310.locate weekly_locate_enable=3D"YES" # Update locate= weekly You can create a file /etc/periodic.conf to control turning on or off or to tweak parameters for any of the periodic scripts. As the name suggests it's a weekly script, and if you look at /etc/crontab you will see the line: 15 4 * * 6 root periodic weekly Or in other words, it runs at around 4:15am on Saturdays. If you wanted to run it every day, then you'ld copy it to /usr/local/etc/periodic/daily/310.locate, globally substitute daily_locate for weekly_locate eg. by: sed -i.bak -e 's/weekly_locate/daily_locate/' \ /usr/local/etc/periodic/daily/310.locate and then put both 'daily_locate_enable=3D"YES"' and 'weekly_locate_enable= =3D"NO"' into /etc/periodic.conf In this case it would be run by the periodic system like so: 1 3 * * * root periodic daily that is: at 3:01am every day. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig1D46AD73E5EB8D0315E05898 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkh2P9EACgkQ8Mjk52CukIzeAgCePyCJ3LjXU5TBN02JMeP4dOct wHEAnA+UmxknKwbBBP0pI04HSMTBLKfe =eUoO -----END PGP SIGNATURE----- --------------enig1D46AD73E5EB8D0315E05898--