From owner-freebsd-current@FreeBSD.ORG Thu Jun 10 23:15:22 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 BEE9E16A4CE for ; Thu, 10 Jun 2004 23:15:22 +0000 (GMT) Received: from geri.cc.fer.hr (geri.cc.fer.hr [161.53.72.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6F5943D53 for ; Thu, 10 Jun 2004 23:15:19 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (root@geri.cc.fer.hr [161.53.72.107]) by geri.cc.fer.hr (8.12.9p2/8.12.8) with ESMTP id i5ANDCUh058290 for ; Fri, 11 Jun 2004 01:13:13 +0200 (CEST) (envelope-from ivoras@fer.hr) Message-ID: <40C8EB7D.3070409@fer.hr> Date: Fri, 11 Jun 2004 01:15:09 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org References: <40C73B86.8080800@fer.hr> <200406091750.i59HoC5p053202@khavrinen.lcs.mit.edu> In-Reply-To: <200406091750.i59HoC5p053202@khavrinen.lcs.mit.edu> X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 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: Thu, 10 Jun 2004 23:15:22 -0000 Garrett Wollman wrote: > < said: > > >>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. > > > In theory, you can put in a null script whose only purpose is to force > the dependency order: > > #!/bin/sh > # REQUIRE: database > # BEFORE: web-server Ouch, I should have though of that :) I see in rcorder.c that it's valid and supported to have one script with "PROVIDE: database mysql" and another with "PROVIDE: database postgresql". Also from looking at the code, it seems that probably there's no need for a dummy "database" script. It's still not clear to me if one could put "database_load=YES" in rc.conf and load them all at once? -- What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't you understand?