Date: Mon, 15 May 2006 15:06:12 -0400 From: Mike Jakubik <mikej@rogers.com> To: Scot Hetzel <swhetzel@gmail.com> Cc: ports@freebsd.org, Duane Whitty <duane@greenmeadow.ca> Subject: Re: freeradius starts before mysql Message-ID: <4468D124.8030404@rogers.com> In-Reply-To: <790a9fff0605151124t1e41cbe0y30c8eee8cba8f4e4@mail.gmail.com> References: <446696B7.1070009@rogers.com> <4466C4F3.6000101@greenmeadow.ca> <4468C011.2080404@rogers.com> <790a9fff0605151124t1e41cbe0y30c8eee8cba8f4e4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Scot Hetzel wrote: > On 5/15/06, Mike Jakubik <mikej@rogers.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4468D124.8030404>