mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
CLICKHOUSE-4284 debian init: wait for server startup on 'clickhouse-server start'
This commit is contained in:
parent
d6b1cf1a85
commit
238cfb4da3
11
debian/clickhouse-server.init
vendored
11
debian/clickhouse-server.init
vendored
@ -174,7 +174,16 @@ start()
|
||||
fi
|
||||
|
||||
if [ $EXIT_STATUS -eq 0 ]; then
|
||||
echo "DONE"
|
||||
attempts=0
|
||||
while ! is_running && [ $attempts -le 10 ]; do
|
||||
attempts=$(($attempts + 1))
|
||||
sleep 1
|
||||
done
|
||||
if is_running; then
|
||||
echo "DONE"
|
||||
else
|
||||
echo "UNKNOWN"
|
||||
fi
|
||||
else
|
||||
echo "FAILED"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user