Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2002 19:58:46 -0700 (PDT)
From:      Doug Barton <DougB@FreeBSD.org>
To:        D J Hawkey Jr <hawkeyd@visi.com>
Cc:        freebsd-stable <freebsd-stable@FreeBSD.org>
Subject:   Re: /etc/defaults/rc.conf theory
Message-ID:  <20020420193955.O15997-100000@master.gorean.org>
In-Reply-To: <20020420203338.A49337@sheol.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Apr 2002, D J Hawkey Jr wrote:

> Um, you mean "after a new install", then? Would I therefore be correct in
> inferring that what's is in place from a 4.5-REL[-pN] install (specifically,
> /etc/rc.conf [en|dis]abling whatever is in /etc/defaults/rc.conf) will
> actually result in the same runtime after an upgrade to 4.6-REL?

	No, actually. You can be reasonably certain that that things
you've set explicitly will still function the same way. However, numerous
factors can contribute to differences. Some examples off the top of my
head:

1. Someone could comment out all the entries in inetd.conf, like was done
on August 4th, 2001.

2. Someone could add new functions/new knobs which changes long-standing
behavior of existing systems, like what's been done with the recent
sendmail changes.

3. Someone could change dependency mapping, like has been done with
portmap, and other services.

> Worded differently, I certainly don't recall anyone saying /etc/rc.conf
> should be an edited-down copy of /etc/defaults/rc.conf that guarantees
> what is up and down; not until yesterday, anyway.

	Part of the problem has been disagreement as to how this file
should be used. I decided to throw caution to the wind. :)

> What I've seen has always stated that what's in /etc/rc.conf overrides
> what's in /etc/defaults/rc.conf; by changing the latter, you certainly
> may change someone's actual runtime, and that's one of (the last of,
> now) the things that bothers me. You've blown POLA out of the water, and
> without blatant warning or notification at the right time, that someone
> is gonna get hurt.

	Exactly. Over time, there has been a general agreement that using
defaults/rc.conf to change things out from under the user is a bad idea.
This is part of my eagerness for mfc'ing things at this stage of the
game... -current is going to be a pretty big shock for the unprepared.
However, this "general agreement" has not always been adhered to. Thus, my
advice to set the variables for the things you care about.

> Have I missed a reassurance somewhere?

	No, I think that you're looking for a reassurance that doesn't
exist.

-- 
   "We have known freedom's price. We have shown freedom's power.
      And in this great conflict, ...  we will see freedom's victory."
	- George W. Bush, President of the United States
          State of the Union, January 28, 2002

         Do YOU Yahoo!?



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020420193955.O15997-100000>