-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathstart-all.sh
executable file
·28 lines (20 loc) · 959 Bytes
/
start-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# preconf
# ./ntpset
cp .bigchaindb /root/.bigchaindb
cd /root
# MongoDB
# [ "$(stat -c %U /data/db)" = mongodb ] || chown -R mongodb /data/db
nohup mongod --bind_ip_all > mongodb.log 2>&1 &
# Tendermint Init
/usr/local/bin/tendermint init
# BigchainDB
bigchaindb start > bigchaindb-output.log 2>&1 &
# BigchainDB + Profiling
# python3 -m cProfile -o bigchaindb-profile.log /usr/local/bin/bigchaindb start > bigchaindb-output.log 2>&1 &
# BigchainDB (PV)
# bigchaindb start --experimental-parallel-validation > bigchaindb-output.log 2>&1 &
# BigchainDB (PV) + Profiling
# python3 -m cProfile -o bigchaindb-profile.log /usr/local/bin/bigchaindb start --experimental-parallel-validation > bigchaindb-output.log 2>&1 &
# Tendermint Start - Start it in the script
# /usr/local/bin/tendermint node --p2p.laddr "tcp://0.0.0.0:26656" --proxy_app="tcp://0.0.0.0:26658" --consensus.create_empty_blocks=false --p2p.pex=false > tendermint.log 2>&1 &