From owner-freebsd-current@FreeBSD.ORG Thu Jun 10 23:30:52 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 50E5F16A4CE for ; Thu, 10 Jun 2004 23:30:52 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36D3743D46 for ; Thu, 10 Jun 2004 23:30:52 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.10) with ESMTP id i5ANTgRH014948; Thu, 10 Jun 2004 16:29:42 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i5ANTgcr014946; Thu, 10 Jun 2004 16:29:42 -0700 Date: Thu, 10 Jun 2004 16:29:42 -0700 From: Brooks Davis To: Ivan Voras Message-ID: <20040610232942.GA14826@Odin.AC.HMC.Edu> References: <40C73B86.8080800@fer.hr> <200406091750.i59HoC5p053202@khavrinen.lcs.mit.edu> <40C8EB7D.3070409@fer.hr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <40C8EB7D.3070409@fer.hr> User-Agent: Mutt/1.5.4i cc: current@freebsd.org 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:30:52 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 11, 2004 at 01:15:09AM +0200, Ivan Voras wrote: > Garrett Wollman wrote: > > < said: > > > > > >>What about services such as apache, which may or may not depend on=20 > services > >>such as databases, if they are installed? For example: If I run=20 > 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 >=20 > 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" scrip= t. >=20 > It's still not clear to me if one could put "database_load=3DYES" in > rc.conf and load them all at once? No, you need to start each service by name. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAyO7lXY6L6fI4GtQRAgXbAKDnLYeXQbH/lALud8sPXBhdfIPg6gCg0XAi YoViGPOTg8hytwu//csQiow= =7U3Y -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--