Lines 154-161
restart_sip()
Link Here
|
154 |
local noLF="-n" |
154 |
local noLF="-n" |
155 |
[ "$verbose" != "no" ] && noLF="" |
155 |
[ "$verbose" != "no" ] && noLF="" |
156 |
echo $noLF `stop_sip ${name}` |
156 |
echo $noLF `stop_sip ${name}` |
|
|
157 |
|
158 |
MAX_ITERATION=10 |
157 |
while is_sip_running ${name}; do |
159 |
while is_sip_running ${name}; do |
|
|
160 |
((i++)) |
161 |
if [ $MAX_ITERATION -lt $i ]; then |
162 |
break |
163 |
fi |
158 |
sleep 1; |
164 |
sleep 1; |
|
|
165 |
|
159 |
done |
166 |
done |
160 |
echo $noLF `start_sip ${name}` |
167 |
echo $noLF `start_sip ${name}` |
161 |
else |
168 |
else |
162 |
- |
|
|