From: Fajar A. Nugraha <fajar@fajar.net>
To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org>
Sent: Saturday, September 5, 2009 11:07:57 PM
Subject: Re: Freeradius +
MySQL At System Boot = Freeradius Failure
On Sat, Sep 5, 2009 at 1:23 PM, James Duffy<
eastcork75@ymail.com> wrote:
> Hi,
>
> Am having problems using freeradius and mysql. Basically they are both set
> to start at system boot but as MySQL takes longer to get going freeradius
> bombs out with Mysql error 'Can't connect to local MySQL server through
> socket '/var/run/mysql/mysql.sock' (2)' type errors.
>
> I can 'fix' this by adding a time delay in rc.local between the mysql
> startup and radiusd startup but this does not seem like the right way to fix
> this.
You could use "mysqladmin ping" instead of simple sleep to make sure
that mysql REALLY works. Some manual hacking might be necessary
though. Something like
while ! mysqladmin ping;do echo -n .;sleep 1;done
--
Fajar
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html