Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2015 11:21:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 197152] rc(8) config files under /usr/local/etc/rc.d/rc.conf.d/ are not sourced at startup
Message-ID:  <bug-197152-8-8eTMGBN7Wc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197152-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197152-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197152

--- Comment #1 from Jason Mann <jason.mann@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197152-8-8eTMGBN7Wc>