From owner-freebsd-hackers Fri Jun 15 8:13: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id E1A7437B408 for ; Fri, 15 Jun 2001 08:12:44 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 19268 invoked by uid 100); 15 Jun 2001 15:12:39 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15146.9703.87903.833445@guru.mired.org> Date: Fri, 15 Jun 2001 10:12:39 -0500 To: tlambert2@mindspring.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Run states (Was: import NetBSD rc system) In-Reply-To: <3B29B98E.DAF2ABE4@mindspring.com> References: <200106141357.JAA27316@pobox.engeast.BayNetworks.COM> <3B29B98E.DAF2ABE4@mindspring.com> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert types: > Run levels or run states? > > It would be damned useful, for every embedded system I've > ever used FreeBSD for (four now, but who's counting?) to > be able to say: > > o Start _all_ the standard FreeBSD stuff, I'm using > this thing as my developement workstation. > > o Start _only_ the FreeBSD stuff I'm going to be > shipping, so that I know what will and won't be > in the target environment actually works. > > o Start the FreeBSD stuff I'm going to be shipping, > _and_ start the locally developemed stuff I'm > going to be shipping, since I'm either shipping > or doing a full regression test. The ability to specify a different boot configuration isn't quite the same as the question of using a NetBSD rc system or not. To use a SysV-like system to specify boot configuration requires that subsystems startup/shutdown be in different files, which means you have to have something like the NetBSD rc system. I get the impression nobody likes the SysV configuration specification methods. Since modern BSD-like systems use /etc/rc.conf extending that would probably be more acceptable. As a user, I'd like to have multiple rc.conf files. For Terry's example, something like /etc/rc.conf, /etc/rc.conf.ship, and /etc/rc.conf.test would be nice. Having to use SysV-like characters might be either better, or required by the boot system. Tweaking source_rc_confs to support either one looks trivial. That just leaves figuring out how the user specifies the run-state, and how that information gets somewhere that it can be used by source_rc_confs. But that's just a SMOP. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message