Skip to content

Instantly share code, notes, and snippets.

@kvhnuke
Created March 8, 2017 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kvhnuke/d767066a552f4421f2f0ad81ba5a3a3e to your computer and use it in GitHub Desktop.
Save kvhnuke/d767066a552f4421f2f0ad81ba5a3a3e to your computer and use it in GitHub Desktop.
autostart parity geth when down
#!/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