Re: /etc/rc.conf vs /etc/defaults/rc.conf
From: Scott Mitchell (scott+freebsd_at_fishballoon.org)
Date: 01/12/04
- Previous message: Shawn Ostapuk: "vinum / 5.2 cant mount/growfs/newfs terabyte"
- In reply to: August Simonelli: "/etc/rc.conf vs /etc/defaults/rc.conf"
- Next in thread: fbsd_user: "RE: /etc/rc.conf vs /etc/defaults/rc.conf"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 12 Jan 2004 22:30:24 +0000 To: August Simonelli <deviledog@swiftdsl.com.au>
On Tue, Jan 13, 2004 at 09:18:13AM +1100, August Simonelli wrote:
> Hi all,
>
> I've looked in the handbook (and probably missed the explanation) but am
> still a little confused. What's the difference between these two rc.conf
> files? Both affect things, but what is best practice for their use?
>
> Thank in advance,
Hi,
/etc/defaults/rc.conf sets the default values for all of the configuration
options - the values that will be used if you don't change anything. You
shouldn't ever need to modify this file, or anything else in /etc/defaults
for that matter.
/etc/rc.conf is where you put local changes to the defaults - things that
are specific to your system or network. At the very least, you will
probably want to set the name of your machine and configure whatever
network interfaces you have in here. The installer may have already
written some settings to /etc/rc.conf when you were first setting up
FreeBSD on the machine.
So my general rule is to only ever edit /etc/rc.conf, and to just put
changes to the default settings in it. Some people will copy the whole
/etc/defaults/rc.conf to /etc/rc.conf and then make whatever changes they
require - you get to see everything together in one file this way, but the
danger is that you drift further and further away from the default
configuration as upgrades change things in /etc/defaults/rc.conf, without
you noticing.
Hope that helps,
Scott
-- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Shawn Ostapuk: "vinum / 5.2 cant mount/growfs/newfs terabyte"
- In reply to: August Simonelli: "/etc/rc.conf vs /etc/defaults/rc.conf"
- Next in thread: fbsd_user: "RE: /etc/rc.conf vs /etc/defaults/rc.conf"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|