removed 'master' debug echo's

This commit is contained in:
xdrm-brackets 2018-01-31 22:55:32 +01:00
parent 3a94d8c357
commit 650dc76324
1 changed files with 0 additions and 8 deletions

8
master
View File

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