bigchaindb/pkg/scripts/all-in-one.bash
2018-07-31 14:10:44 +02:00

13 lines
280 B
Bash
Executable File

#!/bin/bash
# MongoDB configuration
[ "$(stat -c %U /data/db)" = mongodb ] || chown -R mongodb /data/db
nohup mongod > /tmp/mongodb_log_$(date +%Y%m%d_%H%M%S) 2>&1 &
# Tendermint configuration
tendermint init
# BigchainDB configuration
bigchaindb-monit-config
monit -d 5 -I -B