#!/bin/sh set -ex # Launch and wait for toxiproxy ${REPOSITORY_ROOT}/vagrant/run_toxiproxy.sh & while ! nc -q 1 localhost 2185 &2 find "${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}" -name "server.log" -print0 | xargs -0 --no-run-if-empty tail -256 exit ${RC} fi