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

Trying new flock method

parent 7977e374
No related branches found
No related tags found
No related merge requests found
...@@ -24,13 +24,13 @@ function startgeth ...@@ -24,13 +24,13 @@ function startgeth
$( accountlist ) \ $( accountlist ) \
$( miner ) \ $( miner ) \
--networkid $BFANETWORKID \ --networkid $BFANETWORKID \
--bootnodes "${bootnodes}" \
--rpc \ --rpc \
--rpcport $rpcport \ --rpcport $rpcport \
--rpcapi "eth,net,web3,admin,clique,miner" \ --rpcapi "eth,net,web3,admin,clique,miner" \
--port $netport \ --port $netport \
--syncmode full \ --syncmode full \
--nousb \ --nousb \
--bootnodes "${bootnodes}" \
--txpool.nolocals \ --txpool.nolocals \
--txpool.accountslots 128 \ --txpool.accountslots 128 \
--txpool.globalslots 32768 \ --txpool.globalslots 32768 \
...@@ -74,13 +74,18 @@ function miner ...@@ -74,13 +74,18 @@ function miner
fi fi
} }
# Start the miner. # Start the miner.
test -e "${BFANODEDIR}/geth.pid" || test -e "${BFANODEDIR}/geth.pid" ||
touch ${BFANODEDIR}/geth.pid touch ${BFANODEDIR}/geth.pid
flock --nonblock --exclusive ${BFANODEDIR}/geth.pid startgeth 2>&1 | (
${BFAHOME}/bin/log.sh ${BFANODEDIR}/log & flock --nonblock --exclusive 9 || exit 1
if [ -t 1 ] startgeth 2>&1 |
then ${BFAHOME}/bin/log.sh ${BFANODEDIR}/log &
echo Logging everything to ${BFANODEDIR}/log if [ -t 1 ]
echo Consider running: tail -n 1000 -F ${BFANODEDIR}/log then
fi echo Logging everything to ${BFANODEDIR}/log
echo Consider running: tail -n 1000 -F ${BFANODEDIR}/log
fi
) 9>> ${$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