From owner-freebsd-current@FreeBSD.ORG Thu Sep 11 01:37:03 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98FE316A4BF; Thu, 11 Sep 2003 01:37:03 -0700 (PDT) Received: from cirb503493.alcatel.com.au (c211-28-27-130.belrs2.nsw.optusnet.com.au [211.28.27.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B0A043FA3; Thu, 11 Sep 2003 01:37:01 -0700 (PDT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h8B8awgh006320; Thu, 11 Sep 2003 18:36:59 +1000 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h8B8auur006319; Thu, 11 Sep 2003 18:36:56 +1000 (EST) Date: Thu, 11 Sep 2003 18:36:55 +1000 From: Peter Jeremy To: Doug Barton Message-ID: <20030911083655.GA6273@cirb503493.alcatel.com.au> References: <20030908105911.GA152151@CIS.FU-Berlin.DE> <20030908194528.GE43314@cirb503493.alcatel.com.au> <20030910164901.T35663@12-234-22-23.pyvrag.nggov.pbz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030910164901.T35663@12-234-22-23.pyvrag.nggov.pbz> User-Agent: Mutt/1.4.1i cc: Philipp Grau cc: freebsd-current@freebsd.org Subject: Re: new rc system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 08:37:03 -0000 On Wed, Sep 10, 2003 at 05:00:49PM -0700, Doug Barton wrote: [re-ordering rc.d scripts] >> This is a known shortcoming in the new rc system. Luke Mewburn >> commented on it in a talk recently but does not yet have a >> satisfactory solution. > >Can you describe in more detail what you mean by "this is a known >shortcoming?" The files in /etc/rc.d/ include dependency information in the form of 'BEFORE' and 'REQUIRE' entries. The default entries are appropriate for "normal" configurations but may require changes in some cases (eg Philipp's situation). The new rc system currently has no mechanism for over-riding these defaults other then by editing the individual rc files. These changes need to be re-merged if the rc files are updated. Luke is currently looking at options to allow administrators to alter the dependency order without requiring the rc files to be edited. Two possibilities are: 1) An option to rcorder that allows dependency information to be included on the command line. 2) Add a hack to rcorder so that given a file /etc/rc.d/foo, it will check for dependency information in /etc/rc.cnf/foo. Peter