>Конкретней. Что в логах когда не работает - в студию... С какими
>параметрами запускается в ручную и через "автозагрузку" - в студию...
В "автозагрузке" стоит скрипт radiusd.sh:
#!/bin/sh
case "$1" in
start)
/usr/local/radius/sbin/radiusd
echo -n ' radiusd'
;;
stop)
if [ -f /usr/local/radius/var/run/radiusd/radiusd.pid ]; then
kill -TERM `cat /usr/local/radius/var/run/radiusd/radiusd.pid`
rm -f /usr/local/radius/var/run/radiusd/radiusd.pid
echo -n ' radiusd'
fi
;;
restart)
if [ -f /usr/local/radius/var/run/radiusd/radiusd.pid ]; then
kill -HUP `cat /usr/local/radius/var/run/radiusd/radiusd.pid`
echo 'radiusd restarted'
fi
;;
*)
echo "Usage: ${0##*/}: { start | stop | restart }" 2>&1
exit 65
;;
esac
когда загрузился - в логах:
Sun Jul 1 16:57:39 2007 : Info: Using deprecated naslist file. Support for this will go away soon.
Sun Jul 1 16:57:39 2007 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Sun Jul 1 16:57:39 2007 : Info: rlm_nibs (rlm_nibs_instantiate): Driver rlm_nibs_mysql (module rlm_nibs_mysql) loaded and lin
Sun Jul 1 16:57:39 2007 : Info: rlm_nibs (rlm_nibs_instantiate): Attempting to connect to root@localhost:3306/freenibs
Sun Jul 1 16:57:39 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #0
Sun Jul 1 16:57:39 2007 : Error: rlm_nibs_mysql: Couldn't connect socket to MySQL server root@localhost:freenibs
Sun Jul 1 16:57:39 2007 : Error: rlm_nibs_mysql: Mysql error 'Can't connect to local MySQL server through socket '/tmp/mysql.
Sun Jul 1 16:57:39 2007 : Error: sql_als->connect_single_socket (nibs): Failed to connect DB handle #0
Sun Jul 1 16:57:39 2007 : Info: rlm_nibs (nibs_init): Initializing main structures `freenibs'
Sun Jul 1 16:57:39 2007 : Info: sql_als->sql_get_socket (nibs): There are no DB handles to use! skipped 16, tried to connect
Sun Jul 1 16:57:39 2007 : Info: sql_als->sql_get_socket (nibs): There are no DB handles to use! skipped 16, tried to connect
Sun Jul 1 16:57:39 2007 : Info: sql_als->sql_get_socket (nibs): There are no DB handles to use! skipped 16, tried to connect
Sun Jul 1 16:57:40 2007 : Info: Ready to process requests.
Sun Jul 1 16:57:40 2007 : Info: Reloading configuration files.
Sun Jul 1 16:57:40 2007 : Info: Using deprecated naslist file. Support for this will go away soon.
Sun Jul 1 16:57:40 2007 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Sun Jul 1 16:57:40 2007 : Info: rlm_nibs (rlm_nibs_instantiate): Driver rlm_nibs_mysql (module rlm_nibs_mysql) loaded and lin
Sun Jul 1 16:57:40 2007 : Info: rlm_nibs (rlm_nibs_instantiate): Attempting to connect to root@localhost:3306/freenibs
Sun Jul 1 16:57:40 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #0
Sun Jul 1 16:57:40 2007 : Error: rlm_nibs_mysql: Couldn't connect socket to MySQL server root@localhost:freenibs
Sun Jul 1 16:57:40 2007 : Error: rlm_nibs_mysql: Mysql error 'Can't connect to local MySQL server through socket '/tmp/mysql.
Sun Jul 1 16:57:40 2007 : Error: sql_als->connect_single_socket (nibs): Failed to connect DB handle #0
Sun Jul 1 16:57:40 2007 : Info: rlm_nibs (nibs_init): Initializing main structures `freenibs'
Sun Jul 1 16:57:40 2007 : Info: sql_als->sql_get_socket (nibs): There are no DB handles to use! skipped 16, tried to connect
Sun Jul 1 16:57:40 2007 : Info: sql_als->sql_get_socket (nibs): There are no DB handles to use! skipped 16, tried to connect
Sun Jul 1 16:57:40 2007 : Info: sql_als->sql_get_socket (nibs): There are no DB handles to use! skipped 16, tried to connect
Sun Jul 1 16:57:40 2007 : Info: Ready to process requests.
при конекте :
Sun Jul 1 17:01:15 2007 : Info: sql_als->sql_get_socket (nibs): Trying to (re)connect unconnected handle 15..
Sun Jul 1 17:01:15 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #15
Sun Jul 1 17:01:15 2007 : Info: sql_als->sql_get_socket (nibs): got socket 15 after skipping 0 unconnected handles, tried to
Sun Jul 1 17:01:15 2007 : Error: rlm_nibs (nibs_fill_user): No packet (group) for user 'user' with gid = 2
Sun Jul 1 17:01:15 2007 : Auth: Login incorrect: [user/<no User-Password attribute>] (from client localhost port 0 cli 192.16
Sun Jul 1 17:01:18 2007 : Info: sql_als->sql_get_socket (nibs): Trying to (re)connect unconnected handle 14..
Sun Jul 1 17:01:18 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #14
Sun Jul 1 17:01:18 2007 : Info: sql_als->sql_get_socket (nibs): got socket 14 after skipping 0 unconnected handles, tried to
Sun Jul 1 17:01:18 2007 : Error: rlm_nibs (nibs_fill_user): No packet (group) for user 'user' with gid = 2
Sun Jul 1 17:01:18 2007 : Auth: Login incorrect: [user/<no User-Password attribute>] (from client localhost port 0)
при перезапуске ( /usr/local/etc/rc.d/radiusd.sh restart ):
Sun Jul 1 17:03:20 2007 : Info: Reloading configuration files.
Sun Jul 1 17:03:20 2007 : Info: Using deprecated naslist file. Support for this will go away soon.
Sun Jul 1 17:03:20 2007 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs (rlm_nibs_instantiate): Driver rlm_nibs_mysql (module rlm_nibs_mysql) loaded and lin
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs (rlm_nibs_instantiate): Attempting to connect to root@localhost:3306/freenibs
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #0
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #1
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #2
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #3
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #4
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #5
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #6
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #7
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #8
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #9
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #10
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #11
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #12
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #13
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #14
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs_mysql: Starting connect to MySQL server for #15
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs (nibs_init): Initializing main structures `freenibs'
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs (nibs_init): Initializing group table `packets' done. Found 2 groups
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs (sql_init_holidays): No holidays configured
Sun Jul 1 17:03:20 2007 : Info: rlm_nibs (nibs_init): Initializing prices table `prices' done. Found 8 prices
Sun Jul 1 17:03:20 2007 : Info: Ready to process requests.
при конекте после перезапуска:
Sun Jul 1 17:05:27 2007 : Auth: Login OK: [user] (from client localhost port 0 cli 192.168.1.200)
Sun Jul 1 17:05:27 2007 : Auth: rlm_nibs (rlm_nibs_postauth): User `user' login OK [127.0.0.1:0] |192.168.1.200|
Так как зделать чтоб тех ошибок в логах не возникало??.... я так понял это изза того что mysql не успевает загрузится до конца, а радиус в это время уже к нему коннектиться??? Что можна сделать в такой ситуации??