FR startup
PD
paul at ranahminang.net
Fri Mar 2 09:30:09 CET 2007
Hi all,
I just finish the setup of FR 1.1.4 on FBSD 6.2
When FR started up manually, it started nicely. The progress can be seen
at /var/log/radius.log
Fri Mar 2 15:20:29 2007 : Info: Using deprecated naslist file. Support
for this will go away soon.
Fri Mar 2 15:20:29 2007 : Info: rlm_exec: Wait=yes but no output
defined. Did you mean output=none?
Fri Mar 2 15:20:29 2007 : Info: rlm_sql (sql): Driver rlm_sql_mysql
(module rlm_sql_mysql) loaded and linked
Fri Mar 2 15:20:29 2007 : Info: rlm_sql (sql): Attempting to connect to
sentral at localhost:/sentral
Fri Mar 2 15:20:29 2007 : Info: rlm_sql_mysql: Starting connect to MySQL
server for #0
Fri Mar 2 15:20:29 2007 : Info: rlm_sql_mysql: Starting connect to MySQL
server for #1
Fri Mar 2 15:20:29 2007 : Info: rlm_sql_mysql: Starting connect to MySQL
server for #2
Fri Mar 2 15:20:29 2007 : Info: rlm_sql_mysql: Starting connect to MySQL
server for #3
Fri Mar 2 15:20:29 2007 : Info: rlm_sql_mysql: Starting connect to MySQL
server for #4
Fri Mar 2 15:20:30 2007 : Info: Ready to process requests.
BUT.. when the FR box restart.. the /var/log/radius.log shows :
Fri Mar 2 15:23:09 2007 : Info: Using deprecated naslist file. Support
for this will go away soon.
Fri Mar 2 15:23:09 2007 : Info: rlm_exec: Wait=yes but no output
defined. Did you mean output=none?
Fri Mar 2 15:23:09 2007 : Info: rlm_sql (sql): Driver rlm_sql_mysql
(module rlm_sql_mysql) loaded and linked
Fri Mar 2 15:23:09 2007 : Info: rlm_sql (sql): Attempting to connect to
sentral at localhost:/sentral
Fri Mar 2 15:23:09 2007 : Info: rlm_sql_mysql: Starting connect to MySQL
server for #0
Fri Mar 2 15:23:09 2007 : Error: rlm_sql_mysql: Couldn't connect socket
to MySQL server sentral at localhost:sentral
Fri Mar 2 15:23:09 2007 : Error: rlm_sql_mysql: Mysql error 'Can't
connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Fri Mar 2 15:23:09 2007 : Error: rlm_sql (sql): Failed to connect DB
handle #0
Fri Mar 2 15:23:10 2007 : Info: Ready to process requests.
Seems that this cause by the process sequesces...
radius is started before mysql started. See the PID of each progress..
root 513 0.0 1.4 5508 3500 ?? Is 3:23PM 0:00.01
/usr/local/sbin/radiusd
mysql 589 0.0 0.5 1724 1308 con- I 3:23PM 0:00.02 /bin/sh
/usr/local/bin/safe_mysqld --defaults-extra-file=/var/db/mysq
mysql 614 0.0 2.2 28044 5496 con- I 3:23PM 0:00.08
/usr/local/libexec/mysqld --defaults-extra-file=/var/db/mysql/my.cnf
The question is.. how to change the process sequence, therefor mysql will
started before radius ?
TIA
PD
More information about the Freeradius-Users
mailing list