Fix the local network sim when multitail is used

This commit is contained in:
Zahary Karadjov 2019-11-12 17:45:57 +00:00 committed by Dustin Brody
parent 5a6a8e9520
commit 92fb3d8233
2 changed files with 3 additions and 3 deletions

View File

@ -46,5 +46,5 @@ $BEACON_NODE_BIN \
--metrics-server=on \
--metrics-server-address="127.0.0.1" \
--metrics-server-port="$(( $BASE_METRICS_PORT + $NODE_ID ))" \
"$@" | tee "$DATA_DIR/node.log"
"$@"

View File

@ -112,10 +112,10 @@ for i in $(seq $MASTER_NODE $TOTAL_USER_NODES); do
CMD="${SIM_ROOT}/run_node.sh $i"
if [[ "$USE_MULTITAIL" != "no" ]]; then
if [[ "$i" == "0" ]]; then
if [[ "$i" == "$MASTER_NODE" ]]; then
SLEEP="0"
else
SLEEP="2"
SLEEP="3"
fi
# "multitail" closes the corresponding panel when a command exits, so let's make sure it doesn't exit
COMMANDS+=( " -cT ansi -t 'node #$i' -l 'sleep $SLEEP; $CMD; echo [node execution completed]; while true; do sleep 100; done'" )