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. --- [EMAIL PROTECTED] 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 > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users ===== Chris Albertson Home: 310-376-1029 [EMAIL PROTECTED] Cell: 310-990-7550 Office: 310-336-5189 [EMAIL PROTECTED] KG6OMK __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
