[Asterisk-Users] monitoring the asterisk and safe restart

Chris Albertson chrisalbertson90278 at yahoo.com
Fri Oct 3 17:41:30 MST 2003


Off the top of my head maybe something like this?


while(1)
  asterisk
  wait `cat /var/run/astrisk.pid`
  sleep 1
end

Looking at the above it could be improved, like checking
for the /var/run/astrisk.pid file before the wait and 
bailing out if not found.  



--- glin at cosini.com wrote:
> Hi List,
> 
> I am sorry that I may bring the old question to the community. My
> question
> is
> 1. How can we determine if asterisk is working normally or not ? what
> kind
> watchdog process do we have at this moment ?
> 
> 2. In case the running asterisk is mulfucntion, is there any
> available way
> to auto restart asterisk ??
> 
> Please advise if you could.
> 
> Thanks.
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users


=====
Chris Albertson
  Home:   310-376-1029  chrisalbertson90278 at yahoo.com
  Cell:   310-990-7550
  Office: 310-336-5189  Christopher.J.Albertson at aero.org
  KG6OMK

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



More information about the asterisk-users mailing list