Re: Freeradius + MySQL At System Boot = Freeradius Failure

2009-09-07 Thread James Duffy
Marinko Do you use MySQL for NAS authentication? I have noticed that Freeradius can re-connect to the database for user authentication later in the process. However as NAS is only read during startup then if MySQL is not ready its understandable why Freeradius would bomb out. JD

Re: Freeradius + MySQL At System Boot = Freeradius Failure

2009-09-07 Thread James Duffy
At System Boot = Freeradius Failure Well right now No but in this moment I don't have test server so I can't help you in this case... Also, NAS table usually is not so big and I don't see any reason for slow start. Is there anything in mysql logs ? James Duffy wrote: Marinko Do you use MySQL

Freeradius + MySQL At System Boot = Freeradius Failure

2009-09-05 Thread James Duffy
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'

Re: Freeradius + MySQL At System Boot = Freeradius Failure

2009-09-05 Thread James Duffy
Based on the reply from Fajar I came up with this as my rc.local: # MySQL startup if [ -x /usr/local/bin/mysqld_safe ]; then /usr/local/bin/mysqld_safe --user=_mysql echo -n ' mysqld ' fi # Wait for the NAS table to come online - otherwise freeradius bombs!! while !