From c45906d7107112185f7e30c5443956d16aaa0cc8 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 9 Dec 2023 18:13:55 +0100 Subject: [PATCH] Slightly better --- hardware/hardware.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/hardware.sh b/hardware/hardware.sh index ee6d6ce10..a85008e80 100755 --- a/hardware/hardware.sh +++ b/hardware/hardware.sh @@ -19,7 +19,7 @@ uptime echo "Starting clickhouse-server" -./clickhouse server >/dev/null 2>&1 & +./clickhouse server >server.log 2>&1 & PID=$! function finish { @@ -33,7 +33,7 @@ echo "Waiting for clickhouse-server to start" for i in {1..300}; do sleep 1 ./clickhouse client --query "SELECT 'Ok.'" 2>/dev/null && break || echo -n '.' - if [[ $i == 300 ]]; then exit 1; fi + if [[ $i == 300 ]]; then cat server.log; exit 1; fi done if [[ $(./clickhouse client --query "EXISTS hits") == '1' && $(./clickhouse client --query "SELECT count() FROM hits") == '100000000' ]]; then