flocore-node/contrib/restart_bitcore_node.js
2018-01-15 16:43:07 -08:00

12 lines
317 B
JavaScript
Executable File

#!/bin/bash
# helper script to run bwdb and/or restart it
# execute thie script and then simply tail /tmp/bwdb-out
# e.g. ./contrib/restart_bwdb.sh && tail -f /tmp/bwdb-out
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pkill -2 -x flocore
wait
exec $DIR/../bin/flocore-node start >> /tmp/bwdb-out 2>&1 &