Re: new rc.d style & ordering

From: Brooks Davis <brooks_at_one-eyed-alien.net>
Date: Thu, 10 Jun 2004 16:29:42 -0700
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_at_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?

No, you need to start each service by name.

-- Brooks

-- 
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

Received on Thu Jun 10 2004 - 21:30:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:56 UTC