Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2012 10:09:48 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*
Message-ID:  <4FE1935C.60902@FreeBSD.org>
In-Reply-To: <alpine.BSF.2.00.1206201049450.23394@wojtek.tensor.gdynia.pl>
References:  <alpine.BSF.2.00.1206201020550.40030@wojtek.tensor.gdynia.pl> <4FE18D93.4060809@FreeBSD.org> <alpine.BSF.2.00.1206201049450.23394@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE1935C.60902>