github.com/aergoio/aergo@v1.3.1/consensus/impl/raftv2/test/run_svr.sh (about) 1 #!/usr/bin/env bash 2 source set_test_env.sh 3 source test_common.sh 4 5 pushd $TEST_RAFT_INSTANCE 6 7 BP_NAME="" 8 9 #rm BP*.toml 10 #./aergoconf-gen.sh 10001 tmpl.toml 5 11 #./make_node.sh 10001 tmpl.toml 1234 12 if [ -z "$1" ];then 13 pattern="BP.*toml" 14 else 15 pattern="$1" 16 fi 17 18 for file in $(ls BP* | grep $pattern); do 19 echo $file 20 BP_NAME=$(echo $file | cut -f 1 -d'.') 21 if [ "${BP_NAME}" != "tmpl" -a "${BP_NAME}" != "arglog" ]; then 22 echo "${BP_NAME}: aergosvr --config $file >> server_${BP_NAME}.log 2>&1" 23 aergosvr --config $file >> server_${BP_NAME}.log 2>&1 & 24 fi 25 done 26 27 sleep 3 28 29 30 popd