From owner-freebsd-rc@FreeBSD.ORG Sat Dec 10 08:58:53 2005 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1514C16A420 for ; Sat, 10 Dec 2005 08:58:53 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 0DBC543D45 for ; Sat, 10 Dec 2005 08:58:51 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 64711 invoked by uid 399); 10 Dec 2005 08:58:50 -0000 Received: from localhost (HELO ?192.168.1.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 10 Dec 2005 08:58:50 -0000 Message-ID: <439A98C7.8040103@FreeBSD.org> Date: Sat, 10 Dec 2005 00:58:47 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (X11/20051203) MIME-Version: 1.0 To: Brooks Davis References: <4398AB6A.3000209@FreeBSD.org> <20051208222013.GB5759@odin.ac.hmc.edu> <43996043.8020609@FreeBSD.org> <20051209193830.GA15097@odin.ac.hmc.edu> In-Reply-To: <20051209193830.GA15097@odin.ac.hmc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: For Review: Latest update to rcorder patch X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 08:58:53 -0000 Brooks Davis wrote: > Instead of talking about diskless systems I'd talk about having remote > file systems in ${local_startup} Ok, how's this: +The early stage should contain all the services needed to +get the disks (local or remote) mounted so that the late +stage can include scripts contained in the directories +listed in the +.Va local_startup +variable (see below). +Thus, the two likely candidates for this value are +mountcritlocal for the typical system, +and mountcritremote if the system needs remote file +systems mounted to get access to the +.Va local_startup +directories. +For example when +.Pa /usr/local +is NFS mounted. >>> - diskless.8 should probably be updated to mentation that >>> early_late_divider must be set to mountcritremote for the documented >>> configuration to work. >> I can do that as part of the change if you want, or you can do it, just let >> me know. > > Please go ahead. Ok, how is this: +.Pp +One difference that you should pay particular attention to is +the value of +.Va local_startup +in +.Pa /etc/defaults/rc.conf . +A typical value for a +.Nm +boot is +.Va mountcritremote , +however your needs may be different. +.Pp The scripts provide four Suggestions for improvements are welcome, it's been a long day. > OK. I might make rcconf.sh into a no-op that provides rcconf in the > first commit and remove it for real in a day or so to make it easier to > debug any inadvertent issues that result from increasing the number of > scripts with no dependencies. Yeah, not only is this a factor, but I also failed to take into account another critical element. rcorder needs at least one script without any REQUIRE lines to know where to start. Right now that's rcconf.sh by design, but I think we need to replace that, rather than just delete rcconf.sh. This is one of the few times when I think a dummy dependency would be useful. I propose that I add a dummy dependency called START, and change everything that currently depends on rcconf to depend on START instead. Sound good? BTW, I noticed that there are several scripts that have no REQUIRE or nostart. Should those be updated? They are: ccd, gbde, mixer, and securelevel. Doug -- This .signature sanitized for your protection