(RADIATOR) How to stop radiusd if hook code fails
Mike Harsh
michael_harsh at yahoo.com
Thu Dec 15 15:23:37 CST 2005
Thanks a bunch Frank.
kill is exactly what I needed. I'm trying to kill from
within a module called by the hook. So, I needed to
kill the ppid using exec('kill', '-9', $ppid).
Yes, this has been covered before and I found pretty
much the same line of code in the mailing list
archives when I searched for shutdown. But I had been
searching for something like kill or die and didn't
find anything.
Thanks again.
--- Frank Danielson <fdanielson at csky.com> wrote:
> 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.
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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