From owner-freebsd-questions@FreeBSD.ORG Wed Jun 20 09:09:55 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 3994B106566B for ; Wed, 20 Jun 2012 09:09:55 +0000 (UTC) (envelope-from matthew@FreeBSD.org) 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 94A838FC14 for ; Wed, 20 Jun 2012 09:09:54 +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 q5K99nJX013448 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 20 Jun 2012 10:09:49 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q5K99nJX013448 Authentication-Results: smtp.infracaninophile.co.uk/q5K99nJX013448; dkim=none (no signature); dkim-adsp=none Message-ID: <4FE1935C.60902@FreeBSD.org> Date: Wed, 20 Jun 2012 10:09:48 +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: Wojciech Puchar References: <4FE18D93.4060809@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCC243E4FA235F125A0EF85C9" X-Virus-Scanned: clamav-milter 0.97.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham 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 09:09:55 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCC243E4FA235F125A0EF85C9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20/06/2012 09:51, Wojciech Puchar wrote: >> >> Create a new file in /usr/local/etc/rc.d/precedence with the following= >> contents: >> >> #!/bin/sh >> # >> # Persuade vboxheadless to start before samba. >> >> # PROVIDE: precedence >> # REQUIRE: vboxheadless >> # BEFORE: samba >> >> : >> >> Make it executable. Note -- the ':' does seem to be necessary. >> > thank you for help. I will test it when being on place and could reboot= =2E >=20 > But still - do you know why it is necessary? >=20 > cannot i just add BEFORE: samba in vboxheadless? >=20 Yes, that should work too. However any time you update vboxheadless you'll have to remember to add that modification back to the rc script. Using a separate file stops that being a problem. If you want to test that your changes are having the desired effect without having to reboot: # rcorder /etc/rc.d/* /usr/local/etc/rc.d/* which will print out the order all the rc-scripts would be run. (It includes all the scripts, not just the ones enabled in /etc/rc.conf, but that shouldn't matter.) Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enigCC243E4FA235F125A0EF85C9 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/hk10ACgkQ8Mjk52CukIxgtgCgkqLGmXh5HeEPb2XNwBAA7M+Q OssAoIxjQr1hqm8kfUFiB29+kjoRjqyq =GUbd -----END PGP SIGNATURE----- --------------enigCC243E4FA235F125A0EF85C9--