From owner-freebsd-ports@FreeBSD.ORG Mon May 15 17:53:14 2006 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1B4516A4AB for ; Mon, 15 May 2006 17:53:13 +0000 (UTC) (envelope-from mikej@rogers.com) Received: from smtp108.rog.mail.re2.yahoo.com (smtp108.rog.mail.re2.yahoo.com [68.142.225.206]) by mx1.FreeBSD.org (Postfix) with SMTP id DA5A943D6E for ; Mon, 15 May 2006 17:53:07 +0000 (GMT) (envelope-from mikej@rogers.com) Received: (qmail 19949 invoked from network); 15 May 2006 17:53:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ZxFsIwXkBVseelV+WGxLpeyczgybbHHEBwYfLL6fUUQ4t29lwsj8WMvVWnl4wq1DnbjYoSUXAO30Z4POiCQKIYe5PSXTBpqgFvKU/yZVbDdZwcp8nVLq4m7F+7xWHvjTAYxFB/BGY3e5Y7nAMmSUxF/MDH2w8YWrdQYIVKgdZrU= ; Received: from unknown (HELO ?70.31.50.218?) (mikej@rogers.com@70.31.50.218 with plain) by smtp108.rog.mail.re2.yahoo.com with SMTP; 15 May 2006 17:53:07 -0000 Message-ID: <4468C011.2080404@rogers.com> Date: Mon, 15 May 2006 13:53:21 -0400 From: Mike Jakubik User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Duane Whitty References: <446696B7.1070009@rogers.com> <4466C4F3.6000101@greenmeadow.ca> In-Reply-To: <4466C4F3.6000101@greenmeadow.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: Re: freeradius starts before mysql 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: Mon, 15 May 2006 17:53:14 -0000 Duane Whitty wrote: > Hi Mike, > > Sorry for my earlier botched attempt :) > > I verified that according to rc(8) scripts in > /usr/local/etc/rc.d are processed in alphabetical > order (lexicographical is the word I couldn't recall originally). > > I did some testing. > > I created a script /usr/local/etc/rc.d/xxxserver > > with the lines > > # PROVIDE: xxxserver > # REQUIRE: NETWORKING SERVERS > # BEFORE: DAEMON > # KEYWORD: shutdown > > and I modified /usr/local/etc/rc.d/mysql-server with > > # REQUIRE: xxxserver > # BEFORE: DAEMON > > > With this I caused xxxserver to run before mysql. > > It doesn't -- seem -- to adversely effect mysql to start earlier > in the boot sequence than it normally would > > I did test all of the above with a reboot. > > > > If in /usr/local/etc/rc.d/freeradius you change # REQUIRE: NETWORKING > SERVERS to > > REQUIRE: mysql > > and in /usr/local/etc/rc.d/mysql-server you change > > # REQUIRE: LOGIN to # REQUIRE: NETWORKING SERVERS > and add > > # BEFORE: DAEMON > > Then mysql should get started before freeradius. > > I'd test this out for you but as I said in my earlier off-list message > I don't have freeradius installed. Thanks for the info. I will try the second method. But im finding this rcNG stuff a little weird. If application A provides X, and application B requires X, shouldn't A always start before B? If not, them my understanding of "require" and "provide" is flawed i guess...