Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/ibd.sh
Show All 13 Lines | |||||
# Setup | # Setup | ||||
DATA_DIR="ibd" | DATA_DIR="ibd" | ||||
mkdir -p "${DATA_DIR}" | mkdir -p "${DATA_DIR}" | ||||
DEBUG_LOG="${DATA_DIR}/debug.log" | DEBUG_LOG="${DATA_DIR}/debug.log" | ||||
touch "${DEBUG_LOG}" | touch "${DEBUG_LOG}" | ||||
chmod +x bitcoind | chmod +x bitcoind | ||||
# Launch bitcoind using this script's parameters | # Launch bitcoind using this script's parameters | ||||
./bitcoind "-datadir=${DATA_DIR}" $* & | ./bitcoind "-datadir=${DATA_DIR}" "$@" & | ||||
BITCOIND_PID=$! | BITCOIND_PID=$! | ||||
cleanup() { | cleanup() { | ||||
# Cleanup background processes spawned by this script. | # Cleanup background processes spawned by this script. | ||||
pkill -P ${MYPID} tail || true | pkill -P ${MYPID} tail || true | ||||
} | } | ||||
trap "cleanup" EXIT | trap "cleanup" EXIT | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |