0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/bin/check_kafka_clickhouse_up
Tim Glaser 49f3ccc5cc
Improve bin/start (#8007)
* Improve bin/start

* Address feedback and fix `$DEBUG`

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-01-13 17:09:49 +00:00

14 lines
280 B
Bash
Executable File

#!/bin/bash
set -e
# Check Kafka
while true; do
nc -z localhost 9092 && break || echo "Checking Kafka status..." && sleep 1
done
# Check ClickHouse
while true; do
curl -s -o /dev/null -I 'http://localhost:8123/' && break || echo "Checking ClickHouse status..." && sleep 1
done