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

Supporting $BFAVERBOSITY

parent 896d2996
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ test -n "${BFAACCOUNT}" || ...@@ -53,6 +53,7 @@ test -n "${BFAACCOUNT}" ||
function startbootnode function startbootnode
{ {
local ERRTEXT="bootnode section failed"
local keyfile=${BFANETWORKDIR}/bootnode/key local keyfile=${BFANETWORKDIR}/bootnode/key
local pidfile=${BFANETWORKDIR}/bootnode/bootnode.pid local pidfile=${BFANETWORKDIR}/bootnode/bootnode.pid
which bootnode >/dev/null 2>&1 || return 0 which bootnode >/dev/null 2>&1 || return 0
...@@ -81,6 +82,7 @@ function startbootnode ...@@ -81,6 +82,7 @@ function startbootnode
function startmonitor function startmonitor
{ {
local ERRTEXT="monitor section failed"
local pidfile=${BFANETWORKDIR}/monitor.pid local pidfile=${BFANETWORKDIR}/monitor.pid
( (
flock --nonblock --exclusive 9 || ( flock --nonblock --exclusive 9 || (
...@@ -104,6 +106,7 @@ function startmonitor ...@@ -104,6 +106,7 @@ function startmonitor
function startgeth function startgeth
{ {
# Start the node. # Start the node.
local ERRTEXT="geth section failed"
which geth >/dev/null 2>&1 || return 0 which geth >/dev/null 2>&1 || return 0
( (
flock --nonblock --exclusive 9 || ( flock --nonblock --exclusive 9 || (
...@@ -119,6 +122,7 @@ function startgeth ...@@ -119,6 +122,7 @@ function startgeth
fi fi
while : while :
do do
ERRTEXT="geth"
echo echo
echo '***' echo '***'
echo echo
...@@ -126,17 +130,17 @@ function startgeth ...@@ -126,17 +130,17 @@ function startgeth
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 ${BFAVERBOSITY:-3} \
${flexargs} & ${flexargs} &
set +x set +x
echo $! > ${BFANODEDIR}/geth.pid echo $! > ${BFANODEDIR}/geth.pid
......
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