diff --git a/bin/start.sh b/bin/start.sh index 21f2fc91cef20d8387ead0336b4590aa7f3c4745..52edc5843055c907fbeb47735f524522e75b3487 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -55,8 +55,8 @@ function startbootnode { local keyfile=${BFANETWORKDIR}/bootnode/key local pidfile=${BFANETWORKDIR}/bootnode/bootnode.pid - which bootnode >/dev/null 2>&1 || return - test -r $keyfile || return + which bootnode >/dev/null 2>&1 || return 0 + test -r $keyfile || return 0 ( flock --nonblock --exclusive 9 || ( echo "A bootnode is already running." @@ -104,7 +104,7 @@ function startmonitor function startgeth { # Start the node. - which geth >/dev/null 2>&1 || return + which geth >/dev/null 2>&1 || return 0 ( flock --nonblock --exclusive 9 || ( echo "A geth is already running."