From owner-freebsd-questions@FreeBSD.ORG Wed Jun 20 12:39:48 2012 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 876921065695 for ; Wed, 20 Jun 2012 12:39:48 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 910048FC1D for ; Wed, 20 Jun 2012 12:39:36 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q5KCdWEr021855 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 20 Jun 2012 13:39:32 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q5KCdWEr021855 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1340195972; bh=B+5mQMu7X/RV0ZTkXJUYzZkfhM5CGnYIepaJKrKv4M8=; h=Date:From:To:CC:Subject:References:In-Reply-To:Content-Type: Message-ID:Mime-Version; b=O3K0ct8DD4BJzvV1r1y/4qkbKJPNEMEMzgVFTiqroESq8qlWpzJHV8LDfFoX6mZCM SkFdZ/goWq/9Br7j/j/3wWuSDNPoedQh/SVvJn44Gi4sMZyRR/gYIDBn6a1YXMJupD QY14pkiMk78JpGSW67UJ8rQuQIDIMhh49T7yTUas= Message-ID: <4FE1C484.7040204@infracaninophile.co.uk> Date: Wed, 20 Jun 2012 13:39:32 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: RW References: <4FE18D93.4060809@FreeBSD.org> <20120620124729.7f50b781@gumby.homeunix.com> In-Reply-To: <20120620124729.7f50b781@gumby.homeunix.com> X-Enigmail-Version: 1.4.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6A906ED0E043D1C3D516CB94" X-Virus-Scanned: clamav-milter 0.97.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_ADSP_ALL,DKIM_SIGNED,T_DKIM_INVALID autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/* 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: Wed, 20 Jun 2012 12:39:48 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6A906ED0E043D1C3D516CB94 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20/06/2012 12:47, RW wrote: > On Wed, 20 Jun 2012 09:45:07 +0100 > Matthew Seaman wrote: >=20 >> #!/bin/sh >> # >> # Persuade vboxheadless to start before samba. >> >> # PROVIDE: precedence >> # REQUIRE: vboxheadless >> # BEFORE: samba >> >> : >> >> Make it executable. Note -- the ':' does seem to be necessary. >=20 > Why? None of the dummy scripts in the base system have a ":". It seems I was mistaken. As far as rcorder goes, an empty script is just as good as a single null command: % cat precedence #!/bin/sh # # Persuade postgresql to start before spamassassin. # PROVIDE: precedence # REQUIRE: postgresql # BEFORE: spamd % rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | grep -E 'postgresql|precedence|sa-spamd' /usr/local/etc/rc.d/postgresql /usr/local/etc/rc.d/precedence /usr/local/etc/rc.d/sa-spamd Hey -- I saved a whole two bytes. Woohoo! Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig6A906ED0E043D1C3D516CB94 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/hxIQACgkQ8Mjk52CukIzoGQCbB7v3snboT1SU40oMiVm63lW9 KhgAnji7iOrSLmTBjPKHOXA0b4qqz+K/ =f1Va -----END PGP SIGNATURE----- --------------enig6A906ED0E043D1C3D516CB94--