Re: run radius in debug mode with screen
Hi, Alan
while using this verion FreeRADIUS Version 2.1.3, for host i386-portbld-freebsd7.1, built on Jan 6 2009 at 10:52:08 I can run radius as /usr/local/bin/screen -d -m /usr/bin/nice -n -20 /r/radiusd debug
What is "/r/radiusd debug" ? radiusd - is rc script in freebsd.
actually it is /usr/local/etc/rc.d/radiusd debug ... extra_commands="reload debug" radiusd_debug() { radiusd_flags="-X ${radiusd_flags}" run_rc_command start } # ps ax | grep radiusd 51082 1 S 14:17.69 /usr/local/sbin/radiusd -X
but with FreeRADIUS Version 2.1.10, for host i386-portbld-freebsd9.0, built on Nov 28 2011 at 00:20:11
it exit without any messages.
Can you help me please to resolve this problem?
Use the documented command-line options.
problem is that that 'radiusd -X' is detached from stdout so now it is impossible to run it in screen =( radiusd: FreeRADIUS Version 2.1.10 uname -a FreeBSD flux 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Fri Jun 10 01:30:12 UTC 2011 :/usr/obj/usr/src/sys/PAE_KES i386 in this radiusd: FreeRADIUS Version 2.1.3 I can run radius in screen -- С уважением, Коньков mailto:kes-kes@yandex.ru
Hi,
actually it is /usr/local/etc/rc.d/radiusd debug
well just dont run it like that - run the daemon directly...eg radiusd -X and if you want to trap the outut, just pipe it through eg 'tee', or use screen to capture the session alan
Hi, Alan Sorry, but I can not to not run because of: 1. FreeRadius stop working in not debug mode once or more time for a day 2. In debug mode it may work about week without problem 3. In debug mode I can run it only from console or in 'screen' 4. I run it on screen when it fails with help of monitord daemon like '/usr/local/bin/screen -d -m /usr/bin/nice -n -20 /r/radiusd debug' 5 Now with FreeRADIUS Version 2.1.10 because of it is detached from console is hard to fastrun to server and go to console and start radiusd by hand unlike 2.1.3 BUG: you must not detach from console when 'radiusd -X'
actually it is /usr/local/etc/rc.d/radiusd debug
AB> well just dont run it like that - run the daemon directly...eg AB> radiusd -X AB> and if you want to trap the outut, just pipe it through eg 'tee', or use AB> screen to capture the session -- С уважением, Коньков mailto:kes-kes@yandex.ru
Hello. Евгений
ufa-rad2:# screen -d -m freeradius -X -d /etc/freeradius/test/ Works without any problem on Linux
But I guess you should find out the cause of problem and not try to workaround it by running FreeRADIUS in debug
1. FreeRadius stop working in not debug mode once or more time for a day First of all try to update FreeRADIUS to the last version. I too had crashes with 2.1.10. Had to update to 2.1.12 to get rid of crashes.
-- С уважением, Волков Д.А. ЦТЭ ОАО Башинформсвязь, г.Уфа тел. +7(347)2001168 mailto:volkov@ufamts.ru
AD> Коньков Евгений wrote:
BUG: you must not detach from console when 'radiusd -X'
AD> FreeRADIUS does *not* detach from the console when using "radiusd -X". Thank you all I have found where is problem. This is BUG for maintainer of FreeBSD port /usr/local/etc/rc.d/radiusd radiusd_enable=${radiusd_enable-"NO"} --- command_args="&" radiusd_debug() -- С уважением, Коньков mailto:kes-kes@yandex.ru
participants (4)
-
Alan Buxey -
Alan DeKok -
Denis Volkov -
Коньков Евгений