Date: Wed, 20 Jun 2012 08:02:48 -0400 From: Jerry <jerry@seibercom.net> To: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/* Message-ID: <20120620080248.7f3cb6c9@scorpio> In-Reply-To: <20120620124729.7f50b781@gumby.homeunix.com> References: <alpine.BSF.2.00.1206201020550.40030@wojtek.tensor.gdynia.pl> <4FE18D93.4060809@FreeBSD.org> <20120620124729.7f50b781@gumby.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 Jun 2012 12:47:29 +0100 RW articulated: > On Wed, 20 Jun 2012 09:45:07 +0100 > Matthew Seaman wrote: >=20 > > #!/bin/sh > > # > > # Persuade vboxheadless to start before samba. > >=20 > > # PROVIDE: precedence > > # REQUIRE: vboxheadless > > # BEFORE: samba > >=20 > > : > >=20 > > Make it executable. Note -- the ':' does seem to be necessary. >=20 > Why? None of the dummy scripts in the base system have a ":". =46rom "man rc" EXAMPLES The following is a minimal rc.d/ style script. Most scripts require l= it- tle more than the following. #!/bin/sh # # PROVIDE: foo # REQUIRE: bar_service_required_to_precede_foo . /etc/rc.subr name=3D"foo" rcvar=3D`set_rcvar` command=3D"/usr/local/bin/foo" load_rc_config $name run_rc_command "$1" You will notice the prominent use of ":". If you feel that is in error, please feel free to submit a PR against it. --=20 Jerry =E2=99=94 Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120620080248.7f3cb6c9>