Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
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
> 
> i want samba to be started AFTER vboxheadless as the latter configures
> vboxnet0 automatically when started, and samba do bind to vboxnet0.
> 
> so i appended vboxheadless to REQUIRE: line in /usr/local/etc/rc.d/samba
> because vboxheadless is a word after PROVIDE: in
> /usr/local/etc/rc.d/vboxheadless script
> 
> yet - samba still is started before vboxheadless.
> 
> 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

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




[-- Attachment #2 --]
-----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-----

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