From owner-freebsd-questions@FreeBSD.ORG Wed Jun 20 12:30:01 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CAE401065672 for ; Wed, 20 Jun 2012 12:30:01 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 558AA8FC25 for ; Wed, 20 Jun 2012 12:30:01 +0000 (UTC) Received: by eabm6 with SMTP id m6so2773340eab.13 for ; Wed, 20 Jun 2012 05:30:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=25YUVQ7Yx/vHIpeoAKS5XUQj0WHb56pK1IexPzfvvZE=; b=At5WvZ563LaEJwvxbF4nGy3JiUTjCrzoG3vehL/n5vB+WT4UfTSbyLlYhCWLI8LquG +3sYSxw4amDXM99cBEHPQYQLodbpDL3p2E4BMXsAArmp8YZ8wDbBvB5/5OKnviQWXxfy 4EziZR9G3dSn4HywrEUyNYjaStubpboiv/+QGK3W62aO2ptIhufx4Nm//buZOcZuFQ/M bdklIOJr2DhTzpnLVKnSValQZL0CpRVG0pbvvZ26XcgXeQV0sh782bSQkqxyhGGRwf25 1ET2ol1Iff3cuEpINvLSrQqzlBHz41B5zPIJgVP7xpzAH1/kHoK+H0H8it9k2PXGVHpg k9Fg== Received: by 10.14.127.132 with SMTP id d4mr5030980eei.116.1340195399996; Wed, 20 Jun 2012 05:29:59 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id u16sm89916923eeb.16.2012.06.20.05.29.58 (version=SSLv3 cipher=OTHER); Wed, 20 Jun 2012 05:29:58 -0700 (PDT) Message-ID: <4FE1C244.3030400@my.gd> Date: Wed, 20 Jun 2012 14:29:56 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4FE18D93.4060809@FreeBSD.org> <4FE1935C.60902@FreeBSD.org> In-Reply-To: <4FE1935C.60902@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmqs+FzM/S4PtUCnZ0MG8+fHLmY0chBoOaG8//ictwU6VTw6EGZioUk8GiOEyw0KHckthay Subject: Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/* X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2012 12:30:01 -0000 On 6/20/12 11:09 AM, Matthew Seaman wrote: > 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. >> >> But still - do you know why it is necessary? >> >> cannot i just add BEFORE: samba in vboxheadless? >> > > 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 > A very helpful post, adding to favorites. Might that, possibly, warrant a handbook entry ?