Run socat in the background

This commit is contained in:
Michael Vines 2019-03-13 08:15:53 -07:00
parent 1d689e84f1
commit 61db74d98e
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
2 changed files with 2 additions and 1 deletions

View File

@ -409,6 +409,7 @@ stopNode() {
for pattern in solana- remote-; do
pkill -9 \$pattern
done
sudo killall socat
"
) || true
}

View File

@ -116,7 +116,7 @@ local|tar)
if [[ $nodeType = blockstreamer ]]; then
npm install @solana/blockexplorer@1
npx solana-blockexplorer > blockexplorer.log 2>&1 &
sudo socat TCP-LISTEN:80,reuseaddr,fork,su=nobody TCP:localhost:5000
sudo socat -lf socat.log TCP-LISTEN:80,reuseaddr,fork,su=nobody TCP:localhost:5000 &
fi
./multinode-demo/fullnode.sh "${args[@]}" "$entrypointIp":~/solana "$entrypointIp:8001" > fullnode.log 2>&1 &
;;