Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2000 10:06:33 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.ORG>
To:        Jonathan Smith <jonsmith@dragonstar.dhs.org>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Previous Message on /etc/defaults
Message-ID:  <XFMail.000710100633.jhb@FreeBSD.org>
In-Reply-To: <Pine.BSF.4.21.0007092123570.95082-100000@dragonstar.dhs.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 10-Jul-00 Jonathan Smith wrote:
> 
> I, personally, have no need of /etc/defaults and typically disable it,
> anyway.

Why disable it.  Just create simple /etc/*.conf files that contain the
actual changes you use.  My rc.conf is like 15 lines long, and make.conf is
normally about 5 lines.

> Since the whole thing is environment variables, why not make /etc/rc.conf
> and /etc/make.conf _include_ the ones in /etc/defaults (first thing in the
> file) (if they exist, obviously)? At which point, those of us who don't
> use the features [of the defaults] can simply copy the onese in the
> defaults directory over the ones in /etc (thus putting the entire file in
> completely AND removing the inclusion of /etc/defualts files...  This,
> also, enforces the idea that defaults are defaults and the ones in the etc
> directory are the final authority.

Because we don't want code in the /etc/*.conf files since users may accidentally
delete that part of the files and find themselves screwed, etc.  Also, a
significant reason for defaults/ is that it makes upgrading your /etc after a
make world a _lot_ easier since you can copy the new file over and add any
overrides to /etc/rc.conf rather than having to merge in all the changes
into /etc/rc.conf.

> Just an idea :)

It's been thought about, believe me, and the reasons for defaults/ outweigh
the reasons against.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


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?XFMail.000710100633.jhb>