seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

Matthew Seaman matthew at
Wed Jun 20 08:45:20 UTC 2012

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

# Persuade vboxheadless to start before samba.

# PROVIDE: precedence
# REQUIRE: vboxheadless
# BEFORE: samba


Make it executable.  Note -- the ':' does seem to be necessary.



Dr Matthew J Seaman MA, D.Phil.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list