Fixed failure loop in init.d script when grafana will not start (due to permission issue or other), Fixes #1837

This commit is contained in:
Torkel Ödegaard 2015-04-22 08:47:53 +02:00
parent e438d21cc0
commit 90a77bdf85

View File

@ -87,6 +87,7 @@ case "$1" in
# check if pid file has been written two
if ! [[ -s $PID_FILE ]]; then
log_end_msg 1
exit 1
fi
i=0
@ -96,7 +97,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
fi
log_end_msg $return