source: npl/phone/asterisk/start @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 286 bytes
RevLine 
[c5c522c]1#!/bin/bash
2
3TRY=30
4svc -u /service/asterisk
5while ! asterisk -r -x "" &> /dev/null; do
6    echo -n .
7    sleep 1
8    (( TRY-- ))
9    if [ $TRY -eq 0 ]; then
10                syn3-state asterisk CAUTION "Startup error"
11                exit 1
12    fi
13done
14syn3-state asterisk OK "Started"
Note: See TracBrowser for help on using the repository browser.