You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
618 B

#!/bin/bash
cd "${BASH_SOURCE%/*}" || exit
server_type=$(cat server_type.txt)
pubkey=$(cat pubkey.txt)
# Komodo
mining_args=""
if [[ "${server_type}" = "primary" ]]; then
mining_args="-gen -genproclimit=1"
fi
komodod $mining_args -notary -pubkey=$pubkey &
# Bitcoin and assetchains
if [[ "${server_type}" = "primary" ]]; then
bitcoind &
hushd -pubkey=$pubkey &
./startassetchains.sh &
fi
# 3rd party daemons
if [[ "${server_type}" = "secondary" ]]; then
chipsd -pubkey=$pubkey &
gamecreditsd -pubkey=$pubkey &
einsteiniumd -pubkey=$pubkey &
gincoind -pubkey=$pubkey &
verusd -pubkey=$pubkey &
fi