update script
This commit is contained in:
parent
a0e6d0e19d
commit
3d279f6714
1 changed files with 2 additions and 3 deletions
|
@ -7,11 +7,10 @@ tail ${temp_file}
|
|||
|
||||
./fess-*/bin/fess > ${temp_file} 2>&1 &
|
||||
|
||||
error_count=0
|
||||
while true ; do
|
||||
status=$(curl -w '%{http_code}\n' -s -o /dev/null "http://localhost:8080/api/v1/healt")
|
||||
if [[ x"${status}" = x200 ]] ; then
|
||||
error_count=0
|
||||
else
|
||||
if [[ x"${status}" != x200 ]] ; then
|
||||
error_count=$((error_count + 1))
|
||||
fi
|
||||
if [[ ${error_count} -ge 180 ]] ; then
|
||||
|
|
Loading…
Add table
Reference in a new issue