From owner-freebsd-questions@freebsd.org Wed Apr 5 21:07:09 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46121D30383 for ; Wed, 5 Apr 2017 21:07:09 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp3.irishbroadband.ie (smtp4.irishbroadband.ie [62.231.32.6]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 129A4276 for ; Wed, 5 Apr 2017 21:07:08 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [89.127.62.20] (helo=smtp.lan.sohara.org) by smtp3.irishbroadband.ie with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1cvs8q-00015T-0K for freebsd-questions@freebsd.org; Wed, 05 Apr 2017 22:07:00 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.88 (FreeBSD)) (envelope-from ) id 1cvs9P-0001O6-Bo for freebsd-questions@freebsd.org; Wed, 05 Apr 2017 21:07:35 +0000 Date: Wed, 5 Apr 2017 22:06:35 +0100 From: Steve O'Hara-Smith 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> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; amd64-portbld-freebsd10.3) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 21:07:09 -0000 On Wed, 05 Apr 2017 22:54:42 +0200 Dave Cottlehuber 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