Hi All, I'm running the latest yum version of freeradius2 on a 32bit CentOS 5.5 install. I'm using "service radius start" to launch the daemon. I'm trying to figure out how to use the service method to launch the process in debug mode. I can start it in debug mode when calling it from the command line just fine. I thought it might be as simple as modifying the radiusd script file in /init.d with the -x switch, but that causes errors. Does anyone have a working copy of the init.d script I could look at? Thank you in advance! - Mike
I thought it might be as simple as modifying the radiusd script file in /init.d with the -x switch, but that causes errors. Does anyone have a working copy of the init.d script I could look at?
My init's start case looks like this (using the stock rc.radius from source): start) echo -n "Starting $DESC:" $RADIUSD $ARGS echo "radiusd" ;; So you'd just need to modify the "ARGS" definition to something like: " -X -xx >> /var/log/radiusd.log 2>&1 &" R. Marc
Mike Hale <eyeronic.design@gmail.com> wrote:
I'm running the latest yum version of freeradius2 on a 32bit CentOS 5.5 install.
Although not relevent, please next time take a moment to actually find out the FreeRADIUS version as this is a *FreeRADIUS* mailing list and not a CentOS mailing list... To additionally make things complicated, we actually do not know if you are actually running the latest CentOS release (unlikely but 'stale' mirror?) or if you have added additional RPM sources.
I'm using "service radius start" to launch the daemon. I'm trying to figure out how to use the service method to launch the process in debug mode. I can start it in debug mode when calling it from the command line just fine.
I thought it might be as simple as modifying the radiusd script file in /init.d with the -x switch, but that causes errors. Does anyone have a working copy of the init.d script I could look at?
That's a Bad Idea(tm). Learn to use 'screen'[1], 'tee' and call freeradius with 'radiusd -X | tee /tmp/debug' manually. Cheers [1] http://www.kuro5hin.org/story/2004/3/9/16838/14935 -- Alexander Clouter .sigmonster says: An adequate bootstrap is a contradiction in terms.
Hi,
I'm running the latest yum version of freeradius2 on a 32bit CentOS 5.5 install.
I'm using "service radius start" to launch the daemon. I'm trying to figure out how to use the service method to launch the process in debug mode. I can start it in debug mode when calling it from the command line just fine.
I thought it might be as simple as modifying the radiusd script file in /init.d with the -x switch, but that causes errors. Does anyone have a working copy of the init.d script I could look at?
best practice would say dont run the standard service in full debug mode - instead, stop the standard service and manually run the service 'radiusd -X' - use 'script', 'screen' at al to help you out with capturing the information you seek. standard RHEL/CentOS practice is that arguments are put into the relevant file in /etc/sysconfig/ directory - look in there, see the radiusd/freeradius file and add the -X option to it if you really really want to run the standard service in such a mode alan
participants (4)
-
Alan Buxey -
Alexander Clouter -
Marc Phillips -
Mike Hale