corda/buildSrc/scripts/runnodes

18 lines
397 B
Plaintext
Raw Normal View History

2016-08-08 10:54:41 +00:00
#!/usr/bin/env bash
2016-08-24 20:03:20 +00:00
# Creates three nodes. A network map and notary node and two regular nodes that can be extended with cordapps.
2016-08-08 10:54:41 +00:00
set -euo pipefail
trap 'kill $(jobs -p)' SIGINT SIGTERM EXIT
export CAPSULE_CACHE_DIR=cache
pushd nameserver
( java -jar JAR_NAME )&
popd
pushd nodea
( java -jar JAR_NAME )&
popd
pushd nodeb
( java -jar JAR_NAME )&
popd
read -p 'Any key to exit'
kill $(jobs -p)