"Chatty" config files in /etc

John Baldwin jhb at freebsd.org
Thu Aug 31 13:33:18 UTC 2006


On Thursday 31 August 2006 06:18, Tom Rhodes wrote:
> On Thu, 31 Aug 2006 14:00:04 +0400
> Ruslan Ermilov <ru at FreeBSD.org> wrote:
> 
> > > 
> > No, /etc/defaults are different beasties -- they are true
> > default config files -- they are either used if there's no
> > corresponding version under /etc, or most likely sourced
> > to provide defaults.  To be moved to /etc/defaults, a file
> > should gain the same property.
> 
> While this comment is blatently obvious: /etc/examples

This is already spelled /usr/share/examples/etc in FreeBSD.  I agree
with ru@'s idea to trim down files in /etc (and/or remove them as
in hosts.allow) and put examples in /usr/share/examples/etc.  There's
already a precedent for that (I know I've looked at files in
/usr/share/examples/etc before).  /etc/printcap and /etc/hosts.allow
would definitely be on my list.

/etc/defaults would just be wrong for examples, that directory is
for default settings (note that /etc/defaults/rc.conf is not just
comments, but sets default values for various settings.. same with
/etc/defaults/periodic.conf, etc.)

-- 
John Baldwin


More information about the cvs-src mailing list