From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 28 10:26:48 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 462516E1 for ; Wed, 28 Jan 2015 10:26:48 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12E14D09 for ; Wed, 28 Jan 2015 10:26:48 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t0SAQlhD070774 for ; Wed, 28 Jan 2015 10:26:47 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Wed, 28 Jan 2015 10:26:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jason.mann@gmail.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 10:26:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197152 Bug ID: 197152 Summary: rc(8) config files under /usr/local/etc/rc.d/rc.conf.d/ are not sourced at startup Product: Base System Version: 10.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: freebsd-bugs@FreeBSD.org Reporter: jason.mann@gmail.com OVERVIEW: The rc.conf(5) man page states the following: "In addition to /etc/rc.conf.local you can also place smaller configuration files for each rc(8) script in the /etc/rc.conf.d directory or /rc.conf.d directories specified in local_startup, which will be included by the load_rc_config function." I have successfully split the contents of my /etc/rc.conf file into multiple files under /etc/rc.conf.d/ and these are all sourced and correctly acted upon at system startup. However, if I relocate the port/package specific files to /usr/local/etc/rc.d/rc.conf.d/, but they are not acted upon at startup. The default value of local_startup is "/usr/local/etc/rc.d", as defined in /etc/defaults/rc.conf. This departs from the expected behaviour as described in rc.conf(5). STEPS TO REPRODUCE: - Relocate a working rc config file from /etc/rc.conf.d/ to /usr/local/etc/rc.d/rc.conf.d/ - Reboot the system. - Verify whether the service in question starts on boot. ACTUAL RESULTS: - Service is not started at system startup. EXPECTED RESULTS: - Service should be started at system startup. ADDITIONAL INFORMATION: I tested this on my system with the openntpd and dnsmasq packages. Both started fine when their rc config files were under /etc/rc.conf.d/. Neither started when those files were moved to /usr/local/etc/rc.d/rc.conf.d/. -- You are receiving this mail because: You are the assignee for the bug.