Subject: Re: correct "direction" of barriers in rc.d
To: Robert Elz <kre@munnari.OZ.AU>
From: Todd Vierling <email@example.com>
Date: 03/25/2002 11:13:56
On Sat, 23 Mar 2002, Robert Elz wrote:
: It would be useful to be able to specify (in rc.conf) overriding require/before
: rules for scripts - as args to rcorder.
Well, as stated earlier in the thread, this can be worked around with a glue
script (no code, just dependencies). For most situations -- forcing the
order of one or two things, typically to satisfy only one dependency -- this
should be perfectly fine.
Let's say, for some freaky reason, that you need to force rpcbind to be
started as part of NETWORK (the barrier dependency), so it startes before
mountcritremote or somesuch, and don't want to edit any scripts. Add a
===== /etc/rc.d/LOCAL.force-rpcbind-NETWORK =====
# Dependency file to make rpcbind run as part of the NETWORK cluster.
# REQUIRE: rpcbind
# BEFORE: NETWORK
===== END =====
Now, I can see the utility of providing some overrides, although I think it
should be in the form of a conf file as opposed to rcorder args. And if
it's a conf file, why not use glue scripts? :)
-- Todd Vierling <firstname.lastname@example.org> * Wasabi & NetBSD: Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/