mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 21:49:51 +01:00
49f3ccc5cc
* Improve bin/start * Address feedback and fix `$DEBUG` Co-authored-by: Michael Matloka <dev@twixes.com>
14 lines
280 B
Bash
Executable File
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
|