Freeradius + MySQL At System Boot = Freeradius Failure

Fajar A. Nugraha fajar at fajar.net
Sun Sep 6 00:07:57 CEST 2009


On Sat, Sep 5, 2009 at 1:23 PM, James Duffy<eastcork75 at 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



More information about the Freeradius-Users mailing list