Hi,
i am having a strange problem with freeradius-2.0.5 running on a freebsd 7.0
When i start the process through the rc script
The conf file is not parsed and i end up in a strange socket situation as :
while if i just start it by hand everything works perfectly:
i double-checked all permissions on every possible file, and still i can't find a reason for this.
i ended up putting an "echo $_doit" in the rc.subr to check the system was running the same /usr/local/sbin/radiusd as i do ... and it does.
ktraceing the rc.d scripts shows as last stuff:
so here where it should parse the configuration (as i can see from ktracing a manual start of radiusd) the system just does not do it and start the process in a not usable way.
Please ... help
Thanks
i am having a strange problem with freeradius-2.0.5 running on a freebsd 7.0
When i start the process through the rc script
Code:
> $ /usr/local/etc/rc.d/radiusd start
Starting radiusd.
The conf file is not parsed and i end up in a strange socket situation as :
Code:
> $ sockstat -l|grep rad
freeradiusradiusd 47962 4 tcp4 *:* *:*
while if i just start it by hand everything works perfectly:
Code:
> $ /usr/local/sbin/radiusd
> $ sockstat -l|grep rad
freeradiusradiusd 48006 5 udp4 $MYIP1:1812 *:*
freeradiusradiusd 48006 6 udp4 $MYIP1:1813 *:*
freeradiusradiusd 48006 7 udp4 $MYIP2:1812 *:*
freeradiusradiusd 48006 8 udp4 $MYIP2:1813 *:*
freeradiusradiusd 48006 9 udp4 $MYIP1:1814 *:*
i double-checked all permissions on every possible file, and still i can't find a reason for this.
i ended up putting an "echo $_doit" in the rc.subr to check the system was running the same /usr/local/sbin/radiusd as i do ... and it does.
ktraceing the rc.d scripts shows as last stuff:
Code:
44514 sh CALL stat(0x800b29420,0x7fffffffd9e0)
44514 sh NAMI "/usr/local/sbin/radiusd"
44514 sh RET stat 0
44514 sh CALL eaccess(0x800b29420,X_OK)
44514 sh NAMI "/usr/local/sbin/radiusd"
44514 sh RET eaccess 0
44514 sh CALL geteuid
44514 sh RET geteuid 0
44514 sh CALL stat(0x800b294e8,0x7fffffffd020)
44514 sh NAMI "/usr/local/etc/raddb//."
44514 sh RET stat 0
44514 sh CALL stat(0x800b294f8,0x7fffffffd0b0)
44514 sh NAMI "/usr/local/etc/raddb//radiusd.conf"
44514 sh RET stat 0
44514 sh CALL eaccess(0x800b294f8,R_OK)
44514 sh NAMI "/usr/local/etc/raddb//radiusd.conf"
44514 sh RET eaccess 0
44514 sh CALL write(0x1,0x800b11400,0x12)
44514 sh GIO fd 1 wrote 18 bytes
"Starting radiusd.
"
44514 sh RET write 18/0x12
44514 sh CALL fork
44514 sh RET fork 44524/0xadec
44514 sh CALL getpgrp
44514 sh RET getpgrp 44514/0xade2
44514 sh CALL wait4(0xffffffff,0x7fffffffd70c,WUNTRACED,0)
44514 sh RET wait4 44524/0xadec
44514 sh CALL read(0xa,0x520ec0,0x3ff)
44514 sh GIO fd 10 read 0 bytes
""
44514 sh RET read 0
44514 sh CALL exit(0)
so here where it should parse the configuration (as i can see from ktracing a manual start of radiusd) the system just does not do it and start the process in a not usable way.
Please ... help

Thanks