ensuring runtime rc.d service dependencies

Steve O'Hara-Smith steve at sohara.org
Wed Apr 5 21:07:09 UTC 2017

On Wed, 05 Apr 2017 22:54:42 +0200
Dave Cottlehuber <dch at skunkwerks.at> wrote:

> hi folks
> I have 2 services, A & B that do not directly depend on each other, in
> the
> sense that their /usr/local/etc/rc.d/A & /B scripts do not have a
> or PROVIDES style section.
> However at run time, I do want A to be started before B does. Is this
> possible to do within /etc/rc.* framework, or would I need to make use
> of
> a custom script roughly doing:

	Why not simply add REQUIRE and PROVIDE settings (they're singular
not plural words) with some dummy value so that A declares PROVIDE: A and B
declares REQUIRE: A then rcorder will do the right thing for you.

Steve O'Hara-Smith <steve at sohara.org>

More information about the freebsd-questions mailing list