On Fri, May 04, 2007 at 01:59:41PM -1000, Mark Coccimiglio wrote:
> What I do is add an entry in the crontab file as such:
>
> * * * * * if [ ! `/bin/pidof -s asterisk` ] ; then /usr/sbin/asterisk; fi
>
> Its simple and it works. Additionally if asterisk crashes then cron
> restarts the server in about a minute. Just be careful with your configs.
It will not Just Work, because:
1. you may want to give Asterisk other command-line parameters (-p, -U)
and not do that through asterisk.conf .
2. You may have your own reasons for wanting to stop asterisk
occasionally. Having it run every minute from a cron job is a source for
problems.
3. In case running asterisk generates an error, you get a very ugly
flood in your logs and your mailbox.
--
Tzafrir Cohen
icq#16849755 jabber:[EMAIL PROTECTED]
+972-50-7952406 mailto:[EMAIL PROTECTED]
http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users