Re: /etc/rc.conf vs /etc/defaults/rc.conf

From: Scott Mitchell (scott+freebsd_at_fishballoon.org)
Date: 01/12/04

  • Next message: fbsd_user: "RE: /etc/rc.conf vs /etc/defaults/rc.conf"
    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"
    

  • Next message: fbsd_user: "RE: /etc/rc.conf vs /etc/defaults/rc.conf"

    Relevant Pages

    • Re: appsetting in class doesnt work
      ... an appsettings section. ... <!-- This section defines the logging configuration for ... Dim cnfg As System.Configuration.Configuration ... settings enter in the designer. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: appsetting in class doesnt work
      ... added an appsettings section. ... <!-- This section defines the logging configuration for ... Dim cnfg As System.Configuration.Configuration ... the settings enter in the designer. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: appsetting in class doesnt work
      ... added an appsettings section. ... <!-- This section defines the logging configuration for ... Dim cnfg As System.Configuration.Configuration ... and the settings enter in the designer. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: [kde] 4.3.3 bugs
      ... Using the old configuration style, ... the xorg.conf settings look like they should be ... here, and the wording of the manpage, while it does mention the ... XORG WILL NORMALLY FLAT IGNORE YOUR XORG.CONF input settings ENTIRELY, ...
      (KDE)
    • Re: Computer vs. User configuration
      ... "It is not that you can not configure a Group Policy with settings enabled ... Your explanation of a top level GPO with no override filtering down to ... scenario I can imagine having both user and computer configuration settings ...
      (microsoft.public.windows.group_policy)