Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2004 01:15:09 +0200
From:      Ivan Voras <ivoras@fer.hr>
To:        current@freebsd.org
Subject:   Re: new rc.d style & ordering
Message-ID:  <40C8EB7D.3070409@fer.hr>
In-Reply-To: <200406091750.i59HoC5p053202@khavrinen.lcs.mit.edu>
References:  <40C73B86.8080800@fer.hr> <200406091750.i59HoC5p053202@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40C8EB7D.3070409>