Date: Thu, 10 Jun 2004 16:29:42 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Ivan Voras <ivoras@fer.hr> Cc: current@freebsd.org Subject: Re: new rc.d style & ordering Message-ID: <20040610232942.GA14826@Odin.AC.HMC.Edu> In-Reply-To: <40C8EB7D.3070409@fer.hr> References: <40C73B86.8080800@fer.hr> <200406091750.i59HoC5p053202@khavrinen.lcs.mit.edu> <40C8EB7D.3070409@fer.hr>
next in thread | previous in thread | raw e-mail | index | archive | help
--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: > > <<On Wed, 09 Jun 2004 18:32:06 +0200, Ivan Voras <ivoras@fer.hr> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040610232942.GA14826>