From owner-freebsd-ports@FreeBSD.ORG Mon May 15 19:06:05 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 BDCB316A803 for ; Mon, 15 May 2006 19:06:05 +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 7613343D49 for ; Mon, 15 May 2006 19:05:59 +0000 (GMT) (envelope-from mikej@rogers.com) Received: (qmail 90359 invoked from network); 15 May 2006 19:05:58 -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=pcHQf7QJxGXqU76O1cnRFLNqPBm0xvSu9bLD8xYqpYULMBisM8Ank+gsWtJoxOMQpQM/MpvjUz90rI3iCKSYB/cv2MVCisgfTrDCPAkvb/n4DdKeX69ZLbvck0tZJqPtTraupEjOTTOFQ4kh7rYgw5o8FWweypTXK+nz1Er3d6I= ; 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 19:05:58 -0000 Message-ID: <4468D124.8030404@rogers.com> Date: Mon, 15 May 2006 15:06:12 -0400 From: Mike Jakubik User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Scot Hetzel References: <446696B7.1070009@rogers.com> <4466C4F3.6000101@greenmeadow.ca> <4468C011.2080404@rogers.com> <790a9fff0605151124t1e41cbe0y30c8eee8cba8f4e4@mail.gmail.com> In-Reply-To: <790a9fff0605151124t1e41cbe0y30c8eee8cba8f4e4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, Duane Whitty 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 19:06:06 -0000 Scot Hetzel wrote: > On 5/15/06, Mike Jakubik wrote: >> 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... >> > You didn't say which version of FreeBSD your using. If your using > FreeBSD <= 6.0, then the PROVIDES and REQUIRE lines have no effect in > your /usr/local/etc/rc.d. > > If your using -CURRENT, or 6.1+ then the PROVIDES and REQUIRE lines > should affect the order in which the applications from > /usr/local/etc/rc.d. It's 6.1-R. The should, but they don't seem to. Mysql provides mysql, and freeradius requires mysql, but i am still getting errors from freeradius. It's as if freeradius cant find the mysql library. Wed May 10 00:30:27 2006 : Error: rlm_sql_mysql: Couldn't connect socket to MySQL server root@localhost:radius Wed May 10 00:30:27 2006 : Error: rlm_sql_mysql: Mysql error 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Wed May 10 00:30:27 2006 : Error: rlm_sql (sql): Failed to connect DB handle #0 Wed May 10 00:30:27 2006 : Error: rlm_sql (sql): generate_sql_clients() returned error Wed May 10 00:30:27 2006 : Error: radiusd.conf[14]: sql: Module instantiation failed. Wed May 10 00:30:27 2006 : Error: radiusd.conf[1798] Unknown module "sql". Wed May 10 00:30:27 2006 : Error: radiusd.conf[1727] Failed to parse authorize section.