yes, it is not cron but a daemon. Iactually got the suggestion from this list.
You can get all the glory details from: http://cr.yp.to/daemontools.html Dr. Bernstein tools. I have been using it with asterisk successfully for 4 months. Regards, Uriel -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of WipeOut . Sent: Wednesday, September 24, 2003 11:02 AM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Check and restart script.. Has anyone written a script that can be used as a cron job or similar that will test if Asterisk is running and if not restart it?? I have just had an issue where asterisk crashed and someone was trying to call me.. it would be nice if it could have been automatically restarted.. I was thinking of a simple bash script something like running "ps -aux |grep asterisk" and then some kind of "if" to say that if the result is nothing then execute asterisk.. Problem with that theory is that the "ps" command will show up as well so i will have to work out a way to drop that.. Of course I may be missing a simpler or far better solution so thats why I am asking here first.. Later.. -- ______________________________________________ http://www.linuxmail.org/ Now with e-mail forwarding for only US$5.95/yr Powered by Outblaze _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
