<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY 
style="BACKGROUND-POSITION: center top; FONT-WEIGHT: normal; FONT-SIZE: 10pt; BACKGROUND-IMAGE: url(http://skins.hotbar.com/skins/mailskins/st/072102/072102computers.gif); MARGIN: 30px 5px 5px 6px; COLOR: #000000; BACKGROUND-REPEAT: no-repeat; FONT-STYLE: normal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #f5f9fc" 
bgColor=#f5f9fc stationery_tag_mark hbtype="st" hmark="hotbar_element">
<DIV>&nbsp;</DIV>
<DIV><SPAN id=hotbar_element_used stationery_tag_mark><SPAN 
class=652561502-19122003>Dear All,</SPAN></SPAN></DIV>
<DIV><SPAN stationery_tag_mark><SPAN 
class=652561502-19122003></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN stationery_tag_mark><SPAN class=652561502-19122003>I have had a 
problem that I have posted before, the asterisk kept crashing on me. I have 
thought that may be before the problem is resolved, I could try to implement a 
cronjob to run /usr/sbin/safe_asterisk, and if Asterisk is not running at that 
time, it will start it automatically.</SPAN></SPAN></DIV>
<DIV><SPAN stationery_tag_mark><SPAN 
class=652561502-19122003></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN stationery_tag_mark><SPAN class=652561502-19122003>I have read 
through documents and I have tried a few things. I have tried adding a file 
called start_asterisk under /etc/cron.d directory and have put 15 * * * * 
/usr/sbin/safe_asterisk, I have even tried using /var/spool/cron/root and 
inputted the same command line. I even tried actually putting this command line 
in the crontab file under /etc/ but I just could not get the Asterisk to start 
automatically. Finally, the crond seemed to be doing something, but when I 
received mail from crond, it was telling me a message saying " Asterisk exited 
on code 127, Asterisk died on code 127 ". So, I changed the command line to 15 * 
* * * root /usr/sbin/safe_asterisk. Now as per the mail, it is telling me that 
"Asterisk exited on code 1, Asterisk died on code 1". </SPAN></SPAN></DIV>
<DIV><SPAN stationery_tag_mark><SPAN 
class=652561502-19122003></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN stationery_tag_mark><SPAN class=652561502-19122003>Ladies and 
Gentlemen, can anyone please help and let me know what is the way to start 
Asterisk automatically using a cronjob, thanks</SPAN></SPAN></DIV>
<DIV><SPAN stationery_tag_mark><SPAN 
class=652561502-19122003></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN stationery_tag_mark><SPAN 
class=652561502-19122003>Tommy</SPAN></SPAN></DIV></BODY></HTML>