1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00
mariadb-AlanMologorsky a079a2c944 MCOL-5496: Merge CMAPI code to engine repo.
[add] cmapi code to engine
2023-06-07 10:00:16 +03:00

20 lines
462 B
Bash
Executable File

SEC_TO_WAIT=15
echo -n "Waiting CMAPI to finish startup"
success=false
for i in $(seq 1 $SEC_TO_WAIT); do
echo -n "..$i"
if ! $(curl -k -s --output /dev/null --fail https://127.0.0.1:8640/cmapi/ready); then
sleep 1
else
success=true
break
fi
done
echo
if $success; then
echo "CMAPI ready to handle requests."
else
echo "CMAPI not ready after waiting $SEC_TO_WAIT seconds. Check log file for further details."
fi