Fwd: Re: "stop" of asterisk with safe_asterisk

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Apr 8 22:18:47 UTC 2006


----- Forwarded message from Alessandro Polverini <alex at nibbles.it> -----

Subject: Re: "stop" of asterisk with safe_asterisk
From: Alessandro Polverini <alex at nibbles.it>
To: Tzafrir Cohen <tzafrir at xorcom.com>
Organization: nibbles.it
Date: Sat, 08 Apr 2006 23:29:11 +0200

On Sun, 2006-04-09 at 00:13 +0300, Tzafrir Cohen wrote:
> Hi
> 
> Did you intend to reply to me privately?

No, I'm sorry, please reply/forward to the list if you feel it can be of
any interest.

[...]
> > - if asterisk is running fine I can start and stop it with the init
> > script
> 
> safe_asterisk probably figures out asterisk was stopped "normally" nd
> exists. This is the result of running asterisk -rx "stop nuw"

Yes, I suppose.

> > - if asterisk is not working, for example because zap channels are not
> > initialized, safe_asterisk restarts it every few seconds. In this second
> > case I'm unable to stop the daemon with the script and I have to killall
> > safe_asterisk by hand
> > 
> > I'm sorry I do not understand init script enough to fix the problem
> > myself :(
> 
> Basically: use a separate PID file for the safe_asterisk daemon. However
> I fail to see the need for safe_asterisk. It seems like an ugly band-aid
> for instabilities, rather than fixing them.

I agree that safe_asterisk is not a fix, but I can assure is really a
good work around when your asterisk box is unattended and not 100%
reliable.
For example it happened some times to me that asterisk crashes after a
couple of days of heavy load with a quad-pri card.

Bye,
Alex


----- End forwarded message -----

-- 
Tzafrir Cohen      sip:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the Pkg-voip-maintainers mailing list