From owner-freebsd-current@FreeBSD.ORG Wed Jun 9 16:36:24 2004 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 0DCF616A4CE for ; Wed, 9 Jun 2004 16:36:24 +0000 (GMT) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ACB243D58 for ; Wed, 9 Jun 2004 16:36:21 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from fer.hr (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id i59Ge2sM015236 for ; Wed, 9 Jun 2004 18:40:03 +0200 (MEST) Message-ID: <40C73B86.8080800@fer.hr> Date: Wed, 09 Jun 2004 18:32:06 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: new rc.d style & ordering 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: Wed, 09 Jun 2004 16:36:24 -0000 I've read the paper at http://www.mewburn.net/luke/talks/auug-2003/ and there's a subject not clear to me yet: What about services such as apache, which may or may not depend on services such as databases, if they are installed? For example: If I run apache with php and mysql, I want mysql to be started before apache. But there are users who don't require mysql, so putting a hard dependancy (with REQUIRE keyword) in apache.sh isn't an option (and similary with other databases and services, such as postgresql, ldap, etc.). Maybe there's a REQUIRE-IF-INSTALLED functionality I'm missing (though I think that would be a bad idea)? (Also, in the above example, mysql is actually a dependancy of PHP which runs as a module in apache, but apache can require mysql by itself (as authentication database) - what then?). I'm asking this in attempt to figure out what is needed to convert startup scripts such as apache.sh to new-style rc.d. -- Every sufficiently advanced magic is indistinguishable from technology - Arthur C Anticlarke