5 Sep
2009
5 Sep
'09
6:07 p.m.
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