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: signature.asc
Description: OpenPGP digital signature

Reply via email to