在使用testnet开启节点的时候,需要一个一个开启,感觉比较慢
userInner opened this issue · comments
开启所有节点
关闭所有节点
开启所有节点
#!/bin/bash
LOG_INFO(){
content=${1}
echo -e "\033[32m[INFO] ${content}\033[0m"
}
dirs=($(ls -l ${SHELL_FOLDER} | awk '/^d/ {print $NF}'))
for dir in ${dirs[*]}
do
echo ${dir}/conf/server.yaml
if [[ -f "${dir}/conf/server.yaml" && -f "${dir}/control.sh" ]];then
LOG_INFO "try to start ${dir}"
cd ${dir}
bash control.sh start
cd ..
fi
done
wait
关闭所有节点
#!/bin/bash
LOG_INFO(){
content=${1}
echo -e "\033[32m[INFO] ${content}\033[0m"
}
dirs=($(ls -l ${SHELL_FOLDER} | awk '/^d/ {print $NF}'))
for dir in ${dirs[*]}
do
echo ${dir}/conf/server.yaml
if [[ -f "${dir}/conf/server.yaml" && -f "${dir}/control.sh" ]];then
LOG_INFO "try to stop ${dir}"
cd ${dir}
bash control.sh stop
cd ..
fi
done
wait
Ok,可以提一个PR,参考PR提交流程:https://xuper.baidu.com/n/xuperdoc/v5.3/contribution/pull_requests.html
已提交,谢谢
https://github.com/xuperchain/xuperchain/blob/master/auto/control_all.sh @userInner
git checkout -b v5.3.0 v5.3.0
我在部署testnet没有看到这个脚本,我看deploy_testnet.sh 有复制的这个脚本,是因为这个分支的原因吗
https://github.com/xuperchain/xuperchain/blob/master/auto/control_all.sh @userInner
git checkout -b v5.3.0 v5.3.0
我在部署testnet没有看到这个脚本,我看deploy_testnet.sh 有复制的这个脚本,是因为这个分支的原因吗
对的