Date: Wed, 20 Jun 2012 09:45:07 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@FreeBSD.org Subject: Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/* Message-ID: <4FE18D93.4060809@FreeBSD.org> In-Reply-To: <alpine.BSF.2.00.1206201020550.40030@wojtek.tensor.gdynia.pl> References: <alpine.BSF.2.00.1206201020550.40030@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) --------------enigBF0A3475E3D5626D5857CBFC Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20/06/2012 09:24, Wojciech Puchar wrote: > i have samba server and few virtualbox sessions using vboxnet which is > started by /usr/local/etc/rc.d/vboxheadless >=20 > i want samba to be started AFTER vboxheadless as the latter configures > vboxnet0 automatically when started, and samba do bind to vboxnet0. >=20 > so i appended vboxheadless to REQUIRE: line in /usr/local/etc/rc.d/samb= a > because vboxheadless is a word after PROVIDE: in > /usr/local/etc/rc.d/vboxheadless script >=20 > yet - samba still is started before vboxheadless. >=20 > what i am missing? 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. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enigBF0A3475E3D5626D5857CBFC 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/hjZoACgkQ8Mjk52CukIzqgACfYIwKe2cDB/Sz9Hpf5JuytXeC NRAAn2DPyXkUJJD0nLW+1AgzFOm83OYF =MtLO -----END PGP SIGNATURE----- --------------enigBF0A3475E3D5626D5857CBFC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE18D93.4060809>