[Bug 197152] rc(8) config files under /usr/local/etc/rc.d/rc.conf.d/ are not sourced at startup

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 28 11:21:22 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197152

--- Comment #1 from Jason Mann <jason.mann at gmail.com> ---
Examination of the 'load_rc_config' function in /etc/subr reveals that any
"rc.d" suffix would be removed from any paths specified in the local_startup
parameter.

This means that the default local_startup value of /usr/local/etc/rc.d/ would
instead result in rc config files being sourced from /usr/local/etc/rc.conf.d/,
not /usr/local/etc/rc.d/rc.conf.d/.

The wording of the rc.conf(5) man page is misleading regarding this.  It states
that scripts can be placed in "<dir>/rc.conf.d", where <dir> is the path
specified in local_startup.  It follows that /usr/local/etc/rc.d/rc.conf.d
would be where rc config scripts should be put.


I tested this by moving the rc config files from /usr/local/etc/rc.d/rc.conf.d/
to /usr/local/etc/rc.conf.d/ and rebooted.  Services then started as expected.


This bug might be reclassified as a documentation bug if this was the intended
behaviour.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list