Date: Wed, 5 Apr 2017 22:06:35 +0100 From: Steve O'Hara-Smith <steve@sohara.org> To: freebsd-questions@freebsd.org Subject: Re: ensuring runtime rc.d service dependencies Message-ID: <20170405220635.6725b0b79bd25977971d7857@sohara.org> In-Reply-To: <1491425682.764732.935543008.3B6544EA@webmail.messagingengine.com> References: <1491425682.764732.935543008.3B6544EA@webmail.messagingengine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 05 Apr 2017 22:54:42 +0200 Dave Cottlehuber <dch@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 > REQUIRES > 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@sohara.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170405220635.6725b0b79bd25977971d7857>