Package: Core
Problem: log.c
if (radlog_dir != NULL) {
if (debug_flag || (radlog_dest == RADLOG_STDOUT)) { // always FALSE
msgfd = stdout;
} else if (radlog_dest == RADLOG_STDERR) { //always FALSE
msgfd = stderr;
} else {
sprintf(buffer, "%.1000s/%.1000s", radlog_dir, RADIUS_LOG);
if ((msgfd = fopen(buffer, "a")) == NULL) { //
stderr/radiusd.log does not exist
@400000003bfbeca92194d704 (rlm_sql: Attempting to connect to root@localhost:/radius)
@400000003bfbeca924730054 radiusd: Couldn't open stderr/radius.log for logging: No
such file or directory
@400000003bfbeca92473ac34 (rlm_sql: Driver rlm_sql_mysql loaded and linked)
@400000003bfbeca92474bda4 radiusd: Couldn't open stderr/radius.log for logging: No
such file or directory
@400000003bfbeca924751394 (rlm_sql: Attempting to connect to shop@localhost:/shop)
@400000003bfbeca9254e1e14 Wed Nov 21 19:04:15 2001 : Info: Listening on IP address
217.110.119.53, ports 1812/udp and 1813/udp.
@400000003bfbeca9254f46f4 Wed Nov 21 19:04:15 2001 : Info: Ready to process requests.
running radius with daemontools
mail01:/usr/local/pkg/radius/radiusd # cat /service/radius/run
#!/bin/sh
exec 2>&1
exec /usr/local/sbin/radiusd -fy -lstderr
mail01:/usr/local/pkg/radius/radiusd # uname -a
Linux mail01 2.2.16-SMP #1 SMP Sat Dec 16 23:16:01 CET 2000 i686 unknown
radiusd.conf:
writedir = ${localstatedir}/log/radius
logdir = stderr
(every logfile written into goes to writedir in radiusd.conf)
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html