Created
March 8, 2017 10:51
-
-
Save kvhnuke/d767066a552f4421f2f0ad81ba5a3a3e to your computer and use it in GitHub Desktop.
autostart parity geth when down
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
if [ ! `pgrep geth` ] ; then #change this to either pgrep geth or pgrep parity | |
#su ubuntu -c "/usr/bin/screen -m -d -S parity /usr/bin/parity --tracing on --relay-set strict --force-sealing --rpccorsdomain '*' --rpcaddr '0.0.0.0' --jsonrpc-hosts 'all' --warp --chain ~/ropsten-revert.json > /home/ubuntu/parity.log" | |
su ubuntu -c "/usr/bin/screen -m -d -S geth /home/ubuntu/geth-linux-amd64-1.5.9-a07539fb/geth --testnet --fast --cache=512 --rpc --rpcaddr '0.0.0.0' --rpccorsdomain '*'" | |
fi | |
sleep 10 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment