<!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> </DIV>
<P><FONT face=Arial size=2><FONT face="Courier New">Dear All,<BR><BR>I have had
a problem that I have posted before, the asterisk kept crashing<BR>on me. I have
thought that may be before the problem is resolved, I could<BR>try to implement
a cronjob to run /usr/sbin/safe_asterisk, and if Asterisk<BR>is not running at
that time, it will start it automatically.<BR><BR>I have read through documents
and I have tried a few things. I have tried<BR>adding a file called
start_asterisk under /etc/cron.d directory and have put<BR>15 * * * *
/usr/sbin/safe_asterisk, I have even tried using<BR>/var/spool/cron/root and
inputted the same command line. I even tried<BR>actually putting this command
line in the crontab file under /etc/ but I<BR>just could not get the Asterisk to
start automatically. Finally, the crond<BR>seemed to be doing something, but
when I received mail from crond, it was<BR>telling me a message saying "
Asterisk exited on code 127, Asterisk died on<BR>code 127 ". So, I changed the
command line to 15 * * * * root<BR>/usr/sbin/safe_asterisk. Now as per the mail,
it is telling me that<BR>"Asterisk exited on code 1, Asterisk died on code
1".<BR><BR>Ladies and Gentlemen, can anyone please help and let me know what is
the way<BR>to start Asterisk automatically using a cronjob,
thanks<BR><BR>Tommy<BR></FONT></FONT></P></BODY></HTML>