2019-09-10 21:55:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
./make_genesis.sh
|
|
|
|
|
|
|
|
# multitail support
|
|
|
|
MULTITAIL="${MULTITAIL:-multitail}" # to allow overriding the program name
|
|
|
|
USE_MULTITAIL="${USE_MULTITAIL:-no}" # make it an opt-in
|
|
|
|
type "$MULTITAIL" &>/dev/null || USE_MULTITAIL="no"
|
|
|
|
|
|
|
|
if [ "$USE_MULTITAIL" != "no" ]; then
|
|
|
|
COMMANDS=()
|
|
|
|
# "multitail" closes the corresponding panel when a command exits, so let's make sure it doesn't exit
|
|
|
|
COMMANDS+=( " -cT ansi -t 'nimbus' -l './run_nimbus.sh 0; echo [node execution completed]; while true; do sleep 100; done'" )
|
|
|
|
COMMANDS+=( " -cT ansi -t 'trinity' -l 'sleep 3; ./run_trinity.sh; echo [node execution completed]; while true; do sleep 100; done'" )
|
|
|
|
COMMANDS+=( " -cT ansi -t 'lighthouse' -l 'sleep 3; ./run_lighthouse.sh; echo [node execution completed]; while true; do sleep 100; done'" )
|
2019-09-27 16:17:03 +00:00
|
|
|
COMMANDS+=( " -cT ansi -t 'prysm' -l 'sleep 3; ./run_prysm.sh; echo [node execution completed]; while true; do sleep 100; done'" )
|
|
|
|
COMMANDS+=( " -cT ansi -t 'lodestar' -l 'sleep 3; ./run_lodestar.sh; echo [node execution completed]; while true; do sleep 100; done'" )
|
2019-09-10 21:55:58 +00:00
|
|
|
eval $MULTITAIL -s 3 -M 0 -x \"Multichain\" "${COMMANDS[@]}"
|
|
|
|
else
|
2019-09-27 16:17:03 +00:00
|
|
|
trap 'kill -9 -- -$$' SIGINT EXIT SIGTERM
|
|
|
|
|
2019-09-10 21:55:58 +00:00
|
|
|
./run_nimbus.sh 0 &
|
|
|
|
sleep 2
|
|
|
|
./run_trinity.sh &
|
|
|
|
./run_lighthouse.sh &
|
2019-09-27 16:17:03 +00:00
|
|
|
./run_prysm.sh &
|
|
|
|
./run_lodestar.sh &
|
2019-09-10 21:55:58 +00:00
|
|
|
wait
|
|
|
|
fi
|