Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2004 11:20:38 -0400
From:      Jim Trigg <jtrigg@spamcop.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: /etc and /usr/local/etc directories
Message-ID:  <20040813152038.GF94419@spamcop.net>
In-Reply-To: <20040813150350.GA65471@llama.fishballoon.org>
References:  <7656a1a724a4257a15f6ca.20040812162717.wzyrjvf@www.dslextreme.com> <20040812204039.3648f75f.wmoran@potentialtech.com> <200408130342.53107.danny@ricin.com> <20040813150350.GA65471@llama.fishballoon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 13, 2004 at 04:03:51PM +0100, Scott Mitchell wrote:
> On Fri, Aug 13, 2004 at 03:42:52AM +0200, Danny Pansters wrote:
> > 
> > For system (OS, that's kernel and userland) settings you have /etc
> > For local (packages/ports) settings you have /usr/local/etc or /usr/X11R6/etc
> > 
> > Of course these two local bases should have been merely hard linked long ago 
> > but that's not my decision :)
> 
> One very good reason to keep these separate is that you might be mounting
> /usr/{local,X11R6} on many machines from a shared NFS drive.  By keeping the
> shared configuration on the shared drive you don't have to replicate it on
> every machine, and /etc just contains machine-specific configuration.

But most of what's in /usr/local/etc is machine-specific.  Personally,
on the next rebuild I intend to make /usr/local/etc a symbolic link to
/etc/local.  (Then again, I plan to use /opt for third-party applications
and /usr/local only for locally-developed applications.  /opt/etc will be
a symbolic link to /etc/opt as well.)

Note that I'm using a symbolic link; this is because /etc is on the
root filesystem while /usr and /opt will be separate filesystems.

Jim
-- 
Jim Trigg, Lord High Everything Else  O-          /"\
                                                  \ /  ASCII RIBBON CAMPAIGN
Hostmaster, Huie Kin family website                X    HELP CURE HTML MAIL
Verger, All Saints Church - Sharon Chapel         / \



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