Fix the local network sim when multitail is used
This commit is contained in:
parent
5a6a8e9520
commit
92fb3d8233
|
@ -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"
|
||||
"$@"
|
||||
|
||||
|
|
|
@ -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'" )
|
||||
|
|
Loading…
Reference in New Issue