Michael Vines da4c37beec
multinode-demo/ grooming (#4226)
* Rename leader to entrypoint

* The fullnode identity keypair can now be provided

* Rename _id to _keypair
2019-05-08 19:59:22 -07:00

26 lines
514 B
Bash
Executable File

#!/usr/bin/env bash
#
# Starts an instance of solana-drone
#
here=$(dirname "$0")
# shellcheck source=multinode-demo/common.sh
source "$here"/common.sh
[[ -f "$SOLANA_CONFIG_DIR"/mint-keypair.json ]] || {
echo "$SOLANA_CONFIG_DIR/mint-keypair.json not found, create it by running:"
echo
echo " ${here}/setup.sh"
exit 1
}
set -ex
trap 'kill "$pid" && wait "$pid"' INT TERM ERR
$solana_drone \
--keypair "$SOLANA_CONFIG_DIR"/mint-keypair.json \
"$@" \
> >($drone_logger) 2>&1 &
pid=$!
wait "$pid"