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:
Wolfgang Karall 2015-06-23 20:52:27 +02:00
parent 37eae789a0
commit dc6f3e3eac
1 changed files with 4 additions and 1 deletions

View File

@ -184,7 +184,10 @@ case "$1" in
do
sleep 1
i=$(($i + 1))
[ $i -gt $timeout ] && log_end_msg 1
if [ $i -gt $timeout ]; then
log_end_msg 1
exit 1
fi
done
else
log_end_msg $return