Page cover

Cosmovisor

This guide will walk you through migrating from using 0gchaind start [flags] to using Cosmovisor to manage your 0gchaind application. Cosmovisor offers the advantage of handling upgrades automatically without manual intervention.

By using Cosmovisor, you benefit from:

  • Automatic upgrade handling without manual intervention.

  • Reduced downtime during upgrades.

  • Simplified node management and maintenance.

1. Stop node

sudo systemctl stop 0gd.service

2. Download cosmovisor script to install

wget https://raw.githubusercontent.com/0glabs/0g-chain/dev/networks/testnet/init-cosmovisor.sh

Check Script content nano init-cosmovisor.sh

3. Run script

Before running this script, make sure Go is loaded in your current shell session. If you haven't loaded Go yet, please run the following command:

Reload profile

4. Edit service file to run with Cosmovisor

Last updated