From owner-freebsd-hackers Tue Jun 30 16:12:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA27427 for freebsd-hackers-outgoing; Tue, 30 Jun 1998 16:12:27 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from shell.futuresouth.com (fullermd@shell.futuresouth.com [198.78.58.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA27395 for ; Tue, 30 Jun 1998 16:12:14 -0700 (PDT) (envelope-from fullermd@shell.futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.8.8/8.8.8) id SAA20050; Tue, 30 Jun 1998 18:11:53 -0500 (CDT) Message-ID: <19980630181153.08867@futuresouth.com> Date: Tue, 30 Jun 1998 18:11:53 -0500 From: "Matthew D. Fuller" To: Mike Smith Cc: "Jordan K. Hubbard" , freebsd-hackers@FreeBSD.ORG Subject: Re: Adding a new user interface to FreeBSD administration References: <19980630163313.49201@futuresouth.com> <199806302146.OAA08168@dingo.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199806302146.OAA08168@dingo.cdrom.com>; from Mike Smith on Tue, Jun 30, 1998 at 02:46:18PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jun 30, 1998 at 02:46:18PM -0700, Mike Smith woke me up to tell me: > > On Mon, Jun 29, 1998 at 04:29:31PM -0700, Jordan K. Hubbard woke me up to tell me: > > > > > > linux(enabled) = YES > > > linux(doc) = { This variable controls whether linux emulation support > > > will be automatically loaded at startup. You can also do it manually > > > with the /usr/bin/linux command. } > > > linux(exec-command) = "linux > /dev/null 2>&1" > > > > OK, so what's wrong with a simple /etc/rc.conf script that looks > > something like: > > It doesn't scale. I don't see how. Unless there's a limit (that we're likely to reach) on how long a shell variable can be. I'm sure there is, but I'm not sure if it's low enough that we're likely to hit it on a bootup sequence. I mean, it's the same way Jordan was going with a 'registry', except thrown into a script. I can see it getting a little unwieldy at extreme sizes, but then again, there's only so much you're really going to be DOING on bootup. Have an /etc/configfile.conf which which points something like: ppp_linkup = '/etc/ppp/ppp.linkup' httpd_conf = '/usr/local/www/conf/httpd.conf' system_cshrc = '/etc/csh.cshrc' ... which will A) allow you to see where all the files are and B) allow a monolithic 'sysconfig' script/program/cutesy thing to know right off the bat where all the config files are. Heck, you can even C) move all them to /etc/config/ if you wanted to. Perhaps not an ideal solution, but fairly easy to thrown together and better than it is now. > Yes. And you could call it /etc/rc too. > > Wrong direction, sorry. Well, the way I describe redoing (bootup) procedure above would drop quietly into the present setup; just replace /etc/rc with that nice little 4-line script, and rc.conf with the above. It's a bit more self-explanatory than the present, anyway. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | FreeBSD; the way computers were meant to be | * "The only reason I'm burning my candle at both ends, is * | that I haven't figured out how to light the middle yet."| * fullermd@futuresouth.com :-} MAtthew Fuller * | http://keystone.westminster.edu/~fullermd | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message