From 0a73f6486811f7635a260718a88dffd303f03d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Martin-Leg=C3=A8ne?= <robert@nic.ar> Date: Thu, 27 Sep 2018 12:55:23 -0300 Subject: [PATCH] Indentation --- bin/start.sh | 82 ++++++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/bin/start.sh b/bin/start.sh index 70bb617..21f2fc9 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -103,47 +103,47 @@ function startmonitor function startgeth { - # Start the node. - which geth >/dev/null 2>&1 || return - ( - flock --nonblock --exclusive 9 || ( - echo "A geth is already running." - false - ) || exit 1 - echo ${BASHPID} > ${BFANODEDIR}/start-loop.pid - if [ -t 1 ] - then - echo Starting geth - echo Logging everything to ${BFANODEDIR}/log - echo Consider running: tail -n 1000 -F ${BFANODEDIR}/log - fi - while : - do - echo - echo '***' - echo - # (re)configure parameters (you never know if they changed) - flexargs="$( accountlist) $( getminer ) $( getsyncmode ) --extradata $( extradata )" - set -x - geth \ - --datadir ${BFANODEDIR} \ - --networkid ${BFANETWORKID} \ - --bootnodes "${bootnodes}" \ - --rpc \ - --rpcport $rpcport \ - --rpcapi "eth,net,web3,admin,clique,miner,personal" \ - --port $netport \ - --nousb \ - --gcmode archive \ - --cache 512 \ - --verbosity 3 \ - ${flexargs} & - set +x - echo $! > ${BFANODEDIR}/geth.pid - wait - sleep 60 - done 2>&1 | ${BFAHOME}/bin/log.sh ${BFANODEDIR}/log & - ) 9>> ${BFANODEDIR}/start-loop.pid + # Start the node. + which geth >/dev/null 2>&1 || return + ( + flock --nonblock --exclusive 9 || ( + echo "A geth is already running." + false + ) || exit 1 + echo ${BASHPID} > ${BFANODEDIR}/start-loop.pid + if [ -t 1 ] + then + echo Starting geth + echo Logging everything to ${BFANODEDIR}/log + echo Consider running: tail -n 1000 -F ${BFANODEDIR}/log + fi + while : + do + echo + echo '***' + echo + # (re)configure parameters (you never know if they changed) + flexargs="$( accountlist) $( getminer ) $( getsyncmode ) --extradata $( extradata )" + set -x + geth \ + --datadir ${BFANODEDIR} \ + --networkid ${BFANETWORKID} \ + --bootnodes "${bootnodes}" \ + --rpc \ + --rpcport $rpcport \ + --rpcapi "eth,net,web3,admin,clique,miner,personal" \ + --port $netport \ + --nousb \ + --gcmode archive \ + --cache 512 \ + --verbosity 3 \ + ${flexargs} & + set +x + echo $! > ${BFANODEDIR}/geth.pid + wait + sleep 60 + done 2>&1 | ${BFAHOME}/bin/log.sh ${BFANODEDIR}/log & + ) 9>> ${BFANODEDIR}/start-loop.pid } startgeth -- GitLab