From owner-cvs-all Tue Sep 3 10:10:11 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 129E137B400; Tue, 3 Sep 2002 10:09:57 -0700 (PDT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7770D43E42; Tue, 3 Sep 2002 10:09:54 -0700 (PDT) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [IPv6:::1]) by zibbi.icomtek.csir.co.za (8.12.6/8.12.6) with ESMTP id g83H9kwM089235; Tue, 3 Sep 2002 19:09:46 +0200 (SAT) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost) by zibbi.icomtek.csir.co.za (8.12.6/8.12.6/Submit) id g83H9iT8089234; Tue, 3 Sep 2002 19:09:44 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <200209031709.g83H9iT8089234@zibbi.icomtek.csir.co.za> Subject: Re: cvs commit: src/etc/defaults rc.conf In-Reply-To: <20020902122615.739942b4.makonnen@pacbell.net> from Mike Makonnen at "Sep 2, 2002 12:26:15 pm" To: makonnen@pacbell.net (Mike Makonnen) Date: Tue, 3 Sep 2002 19:09:44 +0200 (SAT) Cc: gordon@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I didn't port this script because bootparamd isn't started from the old rc. > We don't even have a knob for it in defaults/rc.conf. But even with this patch > I don't see how it can start for you. You need # KEYWORD: FreeBSD at the > top of the file. It must be starting some other way. Please add the KEYWORD > line and a knob to defaults/rc.conf and resubmit. Thanks! Ok, is this better? I don't know where in rc.conf the bootparamd lines should be added. I added it just after rarpd because those are used together a lot, but move it somewhere else if you want to. The reason I didn't have the KEYWORD line is that my bootparam server is a month old and that code do work without it. I tried this on a machine with today's current. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org Index: etc/defaults/rc.conf =================================================================== RCS file: /home/ncvs/src/etc/defaults/rc.conf,v retrieving revision 1.157 diff -u -r1.157 rc.conf --- etc/defaults/rc.conf 2 Sep 2002 16:35:01 -0000 1.157 +++ etc/defaults/rc.conf 3 Sep 2002 17:00:23 -0000 @@ -157,6 +157,9 @@ rwhod_flags="" # Flags for rwhod rarpd_enable="NO" # Run rarpd (or NO). rarpd_flags="" # Flags to rarpd. +bootparamd_enable="NO" # Run bootparamd (or NO). +bootparamd_flags="" # Flags to bootparamd. + xtend_enable="NO" # Run the X-10 power controller daemon. xtend_flags="" # Flags to xtend (if enabled). pppoed_enable="NO" # Run the PPP over Ethernet daemon. Index: etc/rc.d/bootparams =================================================================== RCS file: /home/ncvs/src/etc/rc.d/bootparams,v retrieving revision 1.2 diff -u -r1.2 bootparams --- etc/rc.d/bootparams 13 Jun 2002 22:14:36 -0000 1.2 +++ etc/rc.d/bootparams 3 Sep 2002 17:00:48 -0000 @@ -7,12 +7,13 @@ # PROVIDE: bootparams # REQUIRE: rpcbind DAEMON # BEFORE: LOGIN +# KEYWORD: FreeBSD . /etc/rc.subr name="bootparamd" -rcvar=$name -command="/usr/sbin/rpc.${name}" +rcvar=`set_rcvar` +command="/usr/sbin/${name}" required_files="/etc/bootparams" load_rc_config $name To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message