Cosmovisor
Autolaunch:
Stop the service:
sudo systemctl stop babylond.service
List of flags:
- -p - Path to the binary
- -b - Binary name
- -c - Config folder name
wget https://raw.githubusercontent.com/Staketab/cosmos-tools/main/cosmovisor/launch.sh
chmod +x launch.sh
./launch.sh -p /root/go/bin/babylond -b babylond -c .babylond
Restart the service:
sudo systemctl restart babylond.service
Conclusion
Now your node will work with Cosmovisor and will be updated automatically when links to the binary were provided in the Proposal. If not, you need to build from the source and put the Binary in the Cosmovisor upgrades folder.
Example
Build the Binary:
git clone https://github.com/babylonchain/babylon.git
cd babylon
git checkout v1.0.0-rc.1
make build
Make a folder (Upgrade version in the table) and move the new binary:
mkdir -p $HOME/.babylond/cosmovisor/upgrades/v1.0.0-rc.1/bin
mv ./build/babylond $HOME/.babylond/cosmovisor/upgrades/v1.0.0-rc.1/bin