From owner-freebsd-stable@FreeBSD.ORG Wed Jun 27 01:20:02 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE8F016A41F for ; Wed, 27 Jun 2007 01:20:02 +0000 (UTC) (envelope-from plosher@plosh.net) Received: from luftpost.plosh.net (luftpost.plosh.net [204.152.186.73]) by mx1.freebsd.org (Postfix) with ESMTP id CF3B313C458 for ; Wed, 27 Jun 2007 01:20:02 +0000 (UTC) (envelope-from plosher@plosh.net) Received: from manx.isc.org (unknown [IPv6:2001:4f8:3:bb::37]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by luftpost.plosh.net (Postfix) with ESMTP id E2AE08FC1D; Wed, 27 Jun 2007 00:26:48 +0000 (UTC) (envelope-from plosher@plosh.net) Message-ID: <4681AEC8.6090903@plosh.net> Date: Tue, 26 Jun 2007 17:26:48 -0700 From: Peter Losher Organization: Plosh Networking User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: freebsd-stable@freebsd.org X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: rc.d scripts not honoring rc_conf_files setting in /etc/rc.conf? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 01:20:02 -0000 Hi, Testing out decentralizing rc.conf and breaking it out into two components on a 6.2-RELEASE system: /etc/rc.conf.default - Settings that are standard across all systems (daemons, etc) /etc/rc.conf.local - Settings that are local to the system (network settings, etc) In /etc/rc.conf, all I have is: rc_conf_files="/etc/rc.conf /etc/rc.conf.default /etc/rc.conf.local" Which I took as "read in these rc.conf files in descending order to populate your variables" When I restarted the system, my rc.d (ntpd, openssh) scripts which were looking for rc.conf variables in /etc/rc.conf.default failed to read in that file. It wasn't until I added /etc/rc.conf.default to rc_conf_files in /etc/defaults/rc.conf was it able to read in that file at boottime and in this case start the daemon(s). Is this how it's supposed to work? (I suspect not if I have to hack /etc/default/rc.conf) If not, can it be fixed? (or if I am assuming incorrectly, can someone enlighten me on how it should work?) :) Thanks - Peter -- [ http://www.plosh.net/ ] - "Earth Halted: Please reboot to continue"