mirror of
https://github.com/grafana/grafana.git
synced 2025-01-02 12:17:01 -06:00
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:
parent
e438d21cc0
commit
90a77bdf85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user