Date: Tue, 14 Jun 2005 15:40:22 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Alex Zbyslaw <xfb52@dial.pipex.com> Cc: freebsd-rc@freebsd.org, freebsd-questions@freebsd.org, "Chad Leigh -- Shire.Net LLC" <chad@shire.net> Subject: Re: rcNG script problems Message-ID: <20050614224022.GA2543@odin.ac.hmc.edu> In-Reply-To: <42AF5631.5040700@dial.pipex.com> References: <42AF0EDD.4090100@speakeasy.net> <200506141342.07886.kirk@strauser.com> <42AF328D.8090502@speakeasy.net> <BA359FEA-3C7C-4243-8490-FB3CDA48AC2E@shire.net> <42AF5631.5040700@dial.pipex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 14, 2005 at 11:12:01PM +0100, Alex Zbyslaw wrote: > Chad Leigh -- Shire.Net LLC wrote: >=20 > > > >On Jun 14, 2005, at 1:39 PM, JM wrote: > > > >>Kirk Strauser wrote: > >> > >> > >>>On Tuesday 14 June 2005 12:07, JM wrote: > >>> > >>> > >>>>i've written an rcNG script but i'm having some issues. > >>>> > >>> > >>>Step one: set rc_debug=3D"YES" in /etc/rc.conf to see what's actually= =20 > >>>happening when you attempt to run your script. That seems to=20 > >>>uncover about 95% of the problems I've had. > >>> > >>turned on the option rc_debug=3D"YES" and ran 'dmesg -a'... the script= =20 > >>doesn't even show up in the list anywhere. are we not supposed to=20 > >>be able to write custom rcNG scripts? is there something i'm=20 > >>overlooking where i need to register httpd_start in the rc stuff? =20 > >>here's my newbie impression of how rc works: > >>- rc i run by init > >>- rc runs rcorder on all script directories. > >>- rc reads rc.conf and runs all scripts found by rcorder > >>rcorder recognizes the script i wrote without any errors... yet when= =20 > >>i boot the system, there is no "checkyesno" for httpd_start. =20 > >>there's nothing that references the script at all... WHY? >.< > >> > >>why did FreeBSD have to adopt this standard anyhow? it seems =20 > >>unnecessarily complicated to write custom scripts now. > > > > > > > >Where does your script live? You can use rcNG style scripts in /usr/=20 > >local/etc but they must end in .sh and are done in lexographic order = =20 > >without the rcorder and stuff (unless you write your own ueber-=20 > >script to do it) > > > >I battled this for a long while before I figured out the /usr/local/=20 > >etc does not get full rcNG support >=20 > I did the same, wondering why scripts weren't even running etc, until I= =20 > read what the manual page actually said rather than what I wanted it to= =20 > say :-) >=20 > Does anyone know why this is? Will /usr/local/etc et al. be getting=20 > proper rcNG support? Otherwise port and locally installed software are= =20 > effectively second class citizens and don't get to benefit especially=20 > from the dependency stuff. Currently I'm stuffing local (not port)=20 > startups in /etc/rc.d, which I don't like doing (and mergemaster=20 > complains about them being obsolete -- I guess trying to spot stuff left= =20 > over from 4.X). It would be great to know what the plans are. There are two reasons. First, we have nearly thirteen-THOUSAND ports so any change needs to be gradual. Second, /usr/local is not generally available when rcorder is run so /etc/rc becomes more complicated to allow scripts to be reordered after mountcritremote is run. That said, we're planning to provide partial rcorder support in 6.0 and hopefully full support in 7.0. Discussions of this are taking place on the freebsd-rc list. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --5vNYLRcllDrimb99 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCr1zVXY6L6fI4GtQRApn0AJ0UpuIssttXtiL8CfEM0sSml5u+XACeLKSZ Dvcf2vNnn0XMUqmeJ+2l4ME= =2WAH -----END PGP SIGNATURE----- --5vNYLRcllDrimb99--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050614224022.GA2543>