new rc.d style & ordering
brooks at one-eyed-alien.net
Thu Jun 10 23:30:52 GMT 2004
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
> >>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.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040610/5960dc5e/attachment.bin
More information about the freebsd-current