auto kill parity to work around parity issue #11737
auto kills / restarts a parity node when it is out of date by more than 7 mins (which should never happen normally) or down
if node does not exit gracefully, sigkill it
start parity either using an auto-restarting manager like systemd or using
while true; do parity --foo --params; sleep 1m; done
When node is synced, run the kill script using this:
npm install
parity_url=http://localhost:8545 npm run auto-kill-parity | tee -a log$(date -I).log
@phiresky awesome work. i would recommend run this script on something like
pm2
, for keep it alive all the time.