Commit 90a77bdf by Torkel Ödegaard

Fixed failure loop in init.d script when grafana will not start (due to…

Fixed failure loop in init.d script when grafana will not start (due to permission issue or other), Fixes #1837
parent e438d21c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment