(RADIATOR) How to stop radiusd if hook code fails

Frank Danielson fdanielson at csky.com
Thu Dec 15 11:40:09 CST 2005


Hi Michael-

I use 'kill "TERM", $$' in my hooks to stop Radiator under Solaris. The TERM
signal lets Radiator run the shutdown hook if you have one.

Frank Danielson
Infrastructure Architect

ClearSky Mobile Media
56 E. Pine St.
Orlando, FL 32801
USA

fdanielson at csky.com

-----Original Message-----
From: Michael Harsh [mailto:Michael.Harsh at billingconcepts.com]
Sent: Thursday, December 15, 2005 11:07 AM
To: 'radiator at open.com.au'
Subject: (RADIATOR) How to stop radiusd if hook code fails


Hello,

I would like to make radiusd die if some of my hook code does not complete
properly. A die in the code only causes my code to die. Is there any way to
return an error code so radiusd will stop? My experiments with this have not
worked. I also tried using a system call to /etc/init.d/radiator stop, but
that did not completely stop Radius either.

Any ideas how I might accomplish this?

The point to this is to get clients to failover to a secondary server if
this hook code does not complete. As it is now, my code fails but Radius
tries authenticating from a file vs. proxying which is the norm. Of course
the account is not in the file and an Access-Reject is issued, denying
service. 

Thank you,
Michael Harsh

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list