Skip to content
Snippets Groups Projects
Commit 0a73f648 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Indentation

parent 263039f4
No related branches found
No related tags found
No related merge requests found
...@@ -103,47 +103,47 @@ function startmonitor ...@@ -103,47 +103,47 @@ function startmonitor
function startgeth function startgeth
{ {
# Start the node. # Start the node.
which geth >/dev/null 2>&1 || return which geth >/dev/null 2>&1 || return
( (
flock --nonblock --exclusive 9 || ( flock --nonblock --exclusive 9 || (
echo "A geth is already running." echo "A geth is already running."
false false
) || exit 1 ) || exit 1
echo ${BASHPID} > ${BFANODEDIR}/start-loop.pid echo ${BASHPID} > ${BFANODEDIR}/start-loop.pid
if [ -t 1 ] if [ -t 1 ]
then then
echo Starting geth echo Starting geth
echo Logging everything to ${BFANODEDIR}/log echo Logging everything to ${BFANODEDIR}/log
echo Consider running: tail -n 1000 -F ${BFANODEDIR}/log echo Consider running: tail -n 1000 -F ${BFANODEDIR}/log
fi fi
while : while :
do do
echo echo
echo '***' echo '***'
echo echo
# (re)configure parameters (you never know if they changed) # (re)configure parameters (you never know if they changed)
flexargs="$( accountlist) $( getminer ) $( getsyncmode ) --extradata $( extradata )" flexargs="$( accountlist) $( getminer ) $( getsyncmode ) --extradata $( extradata )"
set -x set -x
geth \ geth \
--datadir ${BFANODEDIR} \ --datadir ${BFANODEDIR} \
--networkid ${BFANETWORKID} \ --networkid ${BFANETWORKID} \
--bootnodes "${bootnodes}" \ --bootnodes "${bootnodes}" \
--rpc \ --rpc \
--rpcport $rpcport \ --rpcport $rpcport \
--rpcapi "eth,net,web3,admin,clique,miner,personal" \ --rpcapi "eth,net,web3,admin,clique,miner,personal" \
--port $netport \ --port $netport \
--nousb \ --nousb \
--gcmode archive \ --gcmode archive \
--cache 512 \ --cache 512 \
--verbosity 3 \ --verbosity 3 \
${flexargs} & ${flexargs} &
set +x set +x
echo $! > ${BFANODEDIR}/geth.pid echo $! > ${BFANODEDIR}/geth.pid
wait wait
sleep 60 sleep 60
done 2>&1 | ${BFAHOME}/bin/log.sh ${BFANODEDIR}/log & done 2>&1 | ${BFAHOME}/bin/log.sh ${BFANODEDIR}/log &
) 9>> ${BFANODEDIR}/start-loop.pid ) 9>> ${BFANODEDIR}/start-loop.pid
} }
startgeth startgeth
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment