-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
feat: allow start of multiple nodes
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ bin/gvite-* | |
bin/ledger | ||
bin/gvite.log | ||
tsconfig.tsbuildinfo | ||
test/configs/temp |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/bash | ||
pgrep gvite | xargs kill -9 | ||
pgrep gvite | xargs wait | ||
# keep the debug logs in ./ledger/devdata util the next start | ||
pgrep gvite | xargs kill -9 > /dev/null 2>&1 | ||
pgrep gvite | xargs wait > /dev/null 2>&1 | ||
SCRIPT_DIR=$(cd $(dirname ${BASH_SOURCE[0]}); pwd) | ||
rm -rf $SCRIPT_DIR/ledger | ||
rm -f $SCRIPT_DIR/gvite-*.log |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
#!/bin/bash | ||
SCRIPT_DIR=$(cd $(dirname ${BASH_SOURCE[0]}); pwd) | ||
rm -rf $SCRIPT_DIR/ledger | ||
rm -f $SCRIPT_DIR/gvite.log | ||
BIN_FILE=gvite | ||
CFG_FILE=node_config.json | ||
if [ $# == 1 ]; then | ||
BIN_FILE=$1 | ||
fi | ||
if [ $# == 2 ]; then | ||
LOG_FILE=gvite.log | ||
if [ $# == 3 ]; then | ||
BIN_FILE=$1 | ||
CFG_FILE=$2 | ||
LOG_FILE=$3 | ||
fi | ||
cd $SCRIPT_DIR | ||
exec ./$BIN_FILE --config $CFG_FILE --pprof > ./gvite.log | ||
exec ./$BIN_FILE --config $CFG_FILE --pprof > ./$LOG_FILE |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.