freeradius starts before mysql

Mike Jakubik mikej at rogers.com
Mon May 15 19:06:06 UTC 2006


Scot Hetzel wrote:
> On 5/15/06, Mike Jakubik <mikej at 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 at 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.



More information about the freebsd-ports mailing list