Date: Wed, 20 Jun 2012 14:29:56 +0200 From: Damien Fleuriot <ml@my.gd> To: freebsd-questions@freebsd.org Subject: Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/* Message-ID: <4FE1C244.3030400@my.gd> In-Reply-To: <4FE1935C.60902@FreeBSD.org> References: <alpine.BSF.2.00.1206201020550.40030@wojtek.tensor.gdynia.pl> <4FE18D93.4060809@FreeBSD.org> <alpine.BSF.2.00.1206201049450.23394@wojtek.tensor.gdynia.pl> <4FE1935C.60902@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE1C244.3030400>