From owner-freebsd-current Mon Mar 22 9:41:53 1999 Delivered-To: freebsd-current@freebsd.org Received: from octopus.originative (originat.demon.co.uk [158.152.220.9]) by hub.freebsd.org (Postfix) with ESMTP id 9167C15232 for ; Mon, 22 Mar 1999 09:41:38 -0800 (PST) (envelope-from paul@originative.co.uk) Received: by octopus with Internet Mail Service (5.5.2232.9) id ; Mon, 22 Mar 1999 17:39:32 -0000 Message-ID: From: paul@originative.co.uk To: rkw@dataplex.net Cc: current@freebsd.org Subject: RE: /etc/rc.conf, take 46! Date: Mon, 22 Mar 1999 17:39:31 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Richard Wackerbarth [mailto:rkw@dataplex.net] > Sent: 22 March 1999 10:23 > To: John Baldwin > Cc: current@FreeBSD.ORG; Jordan K. Hubbard > Subject: Re: /etc/rc.conf, take 46! > > > On Mon, 22 Mar 1999, John Baldwin wrote: > > > > > On 22-Mar-99 Richard Wackerbarth wrote: > > > There is a problem with this approach. > > > > > > /etc/defaults/rc.conf defines ${rc_conf_files} > > > However, I have no chance to override it before it is used. > > > > > > However, I fear that you need a bit more logic to allow the > > > overriding of ${rc_conf_files}. > > > > Where are going to override it? If we use some other > config file that gets > > sucked in to /etc/defaults/rc.conf we'd have a config file > included in > > another config file that tells it what other config files > to include. If this > > keeps up we'll end up with a bunch of config files floating > around that config > > other config files, which will end up messy and confusing > for newbies, IMHO. > > Unless someone comes up with a scheme that tracks set membership and > allows us to add to that set, I think that we should stick to > the "simple" > approach. > > /etc/defaults/rc.conf defines ${rc_conf_files} to be "/etc/rc.conf" > > /etc/rc.conf is allowed to override this definition to > include additional > files such as "/etc/rc.conf.local" > > Those files get sucked in. > > - - - > > An alternate, and perhaps cleaner approach would be to always suck in > /etc/defaults/rc.conf and /etc/rc.conf. Then suck in those > files specified > in ${additional_rc_conf_files}. I still think we're chasing our tails with all this configuration stuff. Why can't /etc/rc load /etc/defaults/rc.conf followed by /etc/rc.conf (if present). Don't have anything in /etc/defaults.rc.conf except default variable settings. The local admin can do what the hell they want in /etc/rc.conf, including putting in a bit of script to load /etc/rc.conf.local /etc/rc.conf.flavour_of_month etc. Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message