Fix endless looping if starting fails
log_end_msg does not break the loop or exit the script results in endlessly printing 'failed' in red to the screen in case of a failed start.
This commit is contained in:
parent
37eae789a0
commit
dc6f3e3eac
|
@ -184,7 +184,10 @@ case "$1" in
|
||||||
do
|
do
|
||||||
sleep 1
|
sleep 1
|
||||||
i=$(($i + 1))
|
i=$(($i + 1))
|
||||||
[ $i -gt $timeout ] && log_end_msg 1
|
if [ $i -gt $timeout ]; then
|
||||||
|
log_end_msg 1
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
log_end_msg $return
|
log_end_msg $return
|
||||||
|
|
Loading…
Reference in New Issue