removed 'master' debug echo's
This commit is contained in:
parent
3a94d8c357
commit
650dc76324
8
master
8
master
|
@ -92,7 +92,6 @@ MASTER_PID=$?;
|
|||
PORT="$MIN_PORT";
|
||||
for logger_name in "${LOGGERS[@]}"; do
|
||||
|
||||
echo "(1)";
|
||||
# Find an available port
|
||||
while true; do
|
||||
|
||||
|
@ -105,35 +104,28 @@ for logger_name in "${LOGGERS[@]}"; do
|
|||
done;
|
||||
|
||||
# send logger port request
|
||||
echo "(2)";
|
||||
echo " (.) Sending logger@$logger_name request";
|
||||
$ROOT/write master "$POOL_KEY:$logger_name:$LOCAL_IP:$PORT";
|
||||
echo "(3)";
|
||||
|
||||
# check pool response
|
||||
RESP="`nc -w 2 -lp $PORT`";
|
||||
echo "(4)";
|
||||
|
||||
# empty response -> ignore
|
||||
test -z "$RESP" && continue;
|
||||
echo "(5)";
|
||||
|
||||
# not a number -> ignore
|
||||
echo -n "$RESP" | grep -P '^\d+$' >/dev/null || continue;
|
||||
echo "(6)";
|
||||
|
||||
|
||||
# Create output bound
|
||||
echo " (.) Connecting '$logger_name' to $POOL_HOST:$RESP";
|
||||
( $ROOT/bind-output master_$logger_name $POOL_HOST $RESP )&
|
||||
OUTPUT_PID[$logger_name]=$!;
|
||||
echo "(7)";
|
||||
|
||||
echo " (.) launching logger@$logger_name";
|
||||
# launch logger bound to output
|
||||
( $LOGGER_DIR/$logger_name | cat > /tmp/outbuf_master_$logger_name )&
|
||||
LOGGER_PID[$logger_name]=$!;
|
||||
echo "(8)";
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue