From owner-freebsd-ports@FreeBSD.ORG Fri Nov 20 14:02:14 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81D18106566B for ; Fri, 20 Nov 2009 14:02:14 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id 12ECA8FC19 for ; Fri, 20 Nov 2009 14:02:13 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 22so799600eye.9 for ; Fri, 20 Nov 2009 06:02:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=XYhCYJCYYMUD42RIjPgZFxAROReRdGxgnFr7ppe6oXY=; b=VKs5F1Iw9948OkEWlT9qgjqzcWbhc0RmCnP0+4FrtgPxeFP6nEknPk8A47PjotCIJS KWPY1RFr8eVeGgkCWDl1K19Bv7L4cVlQTC/cLqnilU+0DENgv3lOn4/sbdKb3nVDNO8t +yPgBmy97xwf9s28wXy8XMHRf4WAKb+NZdRaY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=ADnTZxfdYqmApLiCDqTNmwLa7zfjGp59Kcl9JUHkwmcZ56LCALrNxf3/VaC+nSt5X1 vHboBn7XCZr2wikdx7sQwcQFQQQjGa2bSiJwzzoEzatudG8MYYHCHsgcUXfgOfE17bDL j8kmwOsjI7+PhNcbzhytyjQbzHT/LhaJljjK0= Received: by 10.213.23.214 with SMTP id s22mr264619ebb.11.1258725732623; Fri, 20 Nov 2009 06:02:12 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 7sm388765eyg.9.2009.11.20.06.02.11 (version=SSLv3 cipher=RC4-MD5); Fri, 20 Nov 2009 06:02:11 -0800 (PST) Date: Fri, 20 Nov 2009 14:02:09 +0000 From: RW To: ports@freebsd.org Message-ID: <20091120140209.0902724a@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: rc.d scripts and REQUIRE part X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 14:02:14 -0000 On Fri, 20 Nov 2009 11:38:58 +0100 Xavier Beaudouin wrote: > Hello, > > I am trying to understand how to customize rc.d scripts to get the > right startup sequence for all daemons. > > Seems we have (my case havp, but it is also the same problem for > example monit) : > > /usr/local/etc/rc.d/havp : > > # PROVIDE: havp > # REQUIRE: DAEMON cleanvar > # BEFORE: LOGIN > > But in my configuration, I need ... clamd to be started before havp. > > I have no garantee that clamd is started before havp. > > Is there any hint (I had a look in handbook, but didn't find yet) a > way to add some REQUIRE stuff for a rc script inside, for > example /etc/rc.conf ? I would suggest that you don't modify any scripts because you will have to maintain them. I'd create some dummy scripts in /usr/local/etc to provide the ordering e.g. #!/bin/sh # # PROVIDE: PREHAVP # REQUIRE: clamd # BEFORE: havp