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

Mejorando singlestart.sh

parent 2287a765
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ bootnodekeyfile=${BFANETWORKDIR}/bootnode/key ...@@ -9,6 +9,7 @@ bootnodekeyfile=${BFANETWORKDIR}/bootnode/key
# Bail out if anything fails. # Bail out if anything fails.
trap "exit 1" ERR trap "exit 1" ERR
trap "reaper" SIGINT
unset LOGDIR LOGPIPE PIDIDX unset LOGDIR LOGPIPE PIDIDX
declare -A PIDIDX declare -A PIDIDX
...@@ -90,7 +91,7 @@ monitor.js > ${LOGPIPE} 2>&1 & ...@@ -90,7 +91,7 @@ monitor.js > ${LOGPIPE} 2>&1 &
PIDIDX[$!]="monitor.js" PIDIDX[$!]="monitor.js"
max=-1 max=-1
while [ -n "${!PIDIDX[*]}" -a $max -eq 0 ] while [ -n "${!PIDIDX[*]}" -a $max -ne 0 ]
do do
sleep 1 sleep 1
max=$(( $max - 1 )) max=$(( $max - 1 ))
......
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