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

Friendly return

parent 0a73f648
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,8 @@ function startbootnode ...@@ -55,8 +55,8 @@ function startbootnode
{ {
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 which bootnode >/dev/null 2>&1 || return 0
test -r $keyfile || return test -r $keyfile || return 0
( (
flock --nonblock --exclusive 9 || ( flock --nonblock --exclusive 9 || (
echo "A bootnode is already running." echo "A bootnode is already running."
...@@ -104,7 +104,7 @@ function startmonitor ...@@ -104,7 +104,7 @@ 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 0
( (
flock --nonblock --exclusive 9 || ( flock --nonblock --exclusive 9 || (
echo "A geth is already running." echo "A geth is already running."
......
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