Skip to content

Instantly share code, notes, and snippets.

@davepuchyr
Last active June 25, 2021 08:03
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 davepuchyr/596b4715106057a14b720e2e702bd566 to your computer and use it in GitHub Desktop.
Save davepuchyr/596b4715106057a14b720e2e702bd566 to your computer and use it in GitHub Desktop.
Run `iov-mainnet-2-halt.sh` on your `iov-mainnet-2` nodes when https://big-dipper.iov-mainnet-2.iov.one/proposals/7 passes
#!/bin/sh
# become root
sudo su -c bash
# pick-up env vars
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport
# inject the halt height into iovnsd.sh
sed --in-place 's/iovnsd start/iovnsd start --halt-height 4294679/' ${DIR_IOVNS}/iovnsd.sh
# restart the service
systemctl restart starname.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment