[Asterisk-Users] Daily Reboot Script for Asterisk Question
Pete Barnwell
peter at whole-uk.com
Fri Dec 9 16:33:31 MST 2005
On Fri, 2005-12-09 at 15:31 -0800, Min Hwan Chang wrote:
> Currently I'm using the daily reboot script for asterisk and I was
> just wondering what the following line actually does:
> while /bin/ps ax | /bin/grep '[s]afe_asterisk' >/dev/null; do sleep 5; done
(a) Check for an asterisk process
If it doesn't exist then exit of of the loop immediately
If it does exist, wait 5 seconds then start again at (a)
Pete
More information about the asterisk-users
mailing list