[RFC][Change-Request] Create usefulness in rc.subr etc/rc.conf.d/*.conf namespace.

Gordon Tetlow gordon at tetlows.org
Wed May 11 00:30:10 UTC 2011


On Mon, May 9, 2011 at 10:15 PM, Jason Hellenthal <jhell at dataix.net> wrote:
> Not to break existing behavior the way they stand:
> [...]
> /etc/defaults/rc.conf
> /etc/rc.conf.d/CUSTOM.conf
> /etc/rc.conf
> /etc/rc.conf.local
> /etc/rc.conf.d/NAME

Having 2 files (well any number of *.conf files actually) sourced from
the same directory at different times based solely on name is a bad
idea. There isn't enough documentation that will adequately explain
how that is supposed to work. I would consider it a major POLA
violation.

Also, if your stated goal was to allow ports to install sample or
sensible defaults into /etc/rc.conf.d, it needs to live in
/usr/local/etc instead of /etc. Ports writing data into /etc shouldn't
happen.

Regards,
Gordon


More information about the freebsd-rc mailing list