dbms: modified test [#METR-11370].

This commit is contained in:
Alexey Milovidov 2014-07-04 18:27:10 +04:00
parent 9c7ac77624
commit db0d25ea6d

View File

@ -24,13 +24,19 @@ cat "$CONFIG" | sed -r \
s/<http_port>[0-9]+/<http_port>8124/;
s/<tcp_port>[0-9]+/<tcp_port>9001/;
s/<interserver_http_port>[0-9]+/<interserver_http_port>9010/;
s/<use_olap_http_server>true/<use_olap_http_server>false/' > $CONFIG2
s/<use_olap_http_server>true/<use_olap_http_server>false/;
s/users\.xml/users-preprocessed.xml/' > $CONFIG2
cp ${CONFIG/config/users} .
# Запустим второй сервер.
BINARY=$(readlink /proc/$(pidof clickhouse-server | tr ' ' '\n' | head -n1)/exe || echo "/usr/bin/clickhouse-server")
if [ ! -x "$BINARY" ]; then
echo "Cannot find executable binary for running clickhouse-server" >&2
exit 1
fi
$BINARY --config-file=${CONFIG2} 2>$LOG &
PID=$!