From 689fc00e67fb5f0a571695555db5568b43de2f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Martin-Leg=C3=A8ne?= <robert@nic.ar> Date: Thu, 27 Sep 2018 13:50:04 -0300 Subject: [PATCH] Supporting $BFAVERBOSITY --- bin/start.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/bin/start.sh b/bin/start.sh index 52edc58..c82e603 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -53,6 +53,7 @@ test -n "${BFAACCOUNT}" || function startbootnode { + local ERRTEXT="bootnode section failed" local keyfile=${BFANETWORKDIR}/bootnode/key local pidfile=${BFANETWORKDIR}/bootnode/bootnode.pid which bootnode >/dev/null 2>&1 || return 0 @@ -81,6 +82,7 @@ function startbootnode function startmonitor { + local ERRTEXT="monitor section failed" local pidfile=${BFANETWORKDIR}/monitor.pid ( flock --nonblock --exclusive 9 || ( @@ -104,6 +106,7 @@ function startmonitor function startgeth { # Start the node. + local ERRTEXT="geth section failed" which geth >/dev/null 2>&1 || return 0 ( flock --nonblock --exclusive 9 || ( @@ -119,6 +122,7 @@ function startgeth fi while : do + ERRTEXT="geth" echo echo '***' echo @@ -126,17 +130,17 @@ function startgeth flexargs="$( accountlist) $( getminer ) $( getsyncmode ) --extradata $( extradata )" set -x geth \ - --datadir ${BFANODEDIR} \ - --networkid ${BFANETWORKID} \ - --bootnodes "${bootnodes}" \ - --rpc \ + --datadir ${BFANODEDIR} \ + --networkid ${BFANETWORKID} \ + --bootnodes "${bootnodes}" \ + --rpc \ --rpcport $rpcport \ --rpcapi "eth,net,web3,admin,clique,miner,personal" \ - --port $netport \ - --nousb \ - --gcmode archive \ + --port $netport \ + --nousb \ + --gcmode archive \ --cache 512 \ - --verbosity 3 \ + --verbosity ${BFAVERBOSITY:-3} \ ${flexargs} & set +x echo $! > ${BFANODEDIR}/geth.pid -- GitLab