From owner-freebsd-questions@freebsd.org Wed Apr 5 21:42:44 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 D4D38D2D22C for ; Wed, 5 Apr 2017 21:42:44 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 95E12C2D for ; Wed, 5 Apr 2017 21:42:44 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from betaweb1.internal (betaweb1.nyi.internal [10.202.2.10]) by mailout.nyi.internal (Postfix) with ESMTP id BA27220953; Wed, 5 Apr 2017 17:42:42 -0400 (EDT) Received: from betaweb1 ([::ffff:10.202.2.10]) by betaweb1.internal (MEProxy); Wed, 05 Apr 2017 17:42:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=ma0FRrfK8ncYRnNW4us7etFbTf +y2SUNiQj1bBgPDmA=; b=CDs3sSy7mJECil5i8dv7/lhA+OktcfNLF6ZbDvrpWM Qk2J9wfJoMagPSXB2/ZeZWvd9DEkKgM8oPc0aLl0QmmeFAgLkP8jExP30bJsODNI Mvk17X4zRaG92v9aWPJA3ZUoHS1WekPtLWmUiKF4kaES6hVbWEmvJ0wg4bJZ+PXo E= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ma0FRr fK8ncYRnNW4us7etFbTf+y2SUNiQj1bBgPDmA=; b=WS14DU4ZlBFuEa8Mn4lZST 1BOT+qhNiqFCOofjXfOENGJrQj+SL91CnD5R2mBuLMu0jve6SKWF+TRTOsdk9G+X oxMhrB84V9lMlirfzS4xrpYJHDT6YXdjRmHPdHCwYaonRL8NruP5se/W4MVZUXaX l8NliAbsLqnEyjQceCHUkpuWvAkjq5Y5350lnUFSXC0p/PcDNKOp14LsLuhRBVC7 QSUEaHWTiPMcsEUoN0mepYN2KyFkr5W0/v3IPJIOPHT0WP5JxJ2Rr63/7WDrnwT3 XS/nVic/WFSAxEyaSqZYCdQOljxUonMInonrnvOqzfLqizz65AdnZ/V+CfESROBw == X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 75F5EE2636; Wed, 5 Apr 2017 17:42:42 -0400 (EDT) Message-Id: <1491428562.2349115.935585736.1435B6C5@webmail.messagingengine.com> From: Dave Cottlehuber To: "Steve O'Hara-Smith" , freebsd-questions@freebsd.org MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface - ajax-affd76ca Date: Wed, 05 Apr 2017 23:42:42 +0200 References: <1491425682.764732.935543008.3B6544EA@webmail.messagingengine.com> <20170405220635.6725b0b79bd25977971d7857@sohara.org> In-Reply-To: <20170405220635.6725b0b79bd25977971d7857@sohara.org> Subject: Re: ensuring runtime rc.d service dependencies Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:42:44 -0000 > > 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. Thanks Steve I've considered this already; the services are in the ports tree already; they are not custom ones. We have a fork of ports so that's a fallback option but I'd prefer less local patches if there's an alternative, even though they're minor. A+ Dave