2 questions about the python module

Alan DeKok aland at deployingradius.com
Fri Sep 12 16:03:34 CEST 2008


Jester wrote:
> Problem:  When I run freeradius in debugging mode (-X switch) it will
> not terminate with a ctrl-C, in fact, when I run it as a service, the
> init.d script fails to kill it as well, it has to be manually
> slaughtered using kill -9 <number> and only then can be restarted.  I am
> curious if this is some aspect of trying to tie python into radius, or
> if I’ve done something terribly wrong ;)

  That sounds familiar.  I think the python code libraries had "good
reasons" for doing that.  But it's still not nice.

> My curiosity is, as a workaround to other problems I had with the python
> modules, I finally just wrote python scripts and put them into the
> freeradius library, and I call them using the ‘exec’ module instead, and
> that works pretty good.  Is there some benefit to running python as a
> module instead of using the exec module? 

  It's less CPU intensive, and may be faster.  But if the "exec"
solution works...

  Alan DeKok.



More information about the Freeradius-Users mailing list