If you set the variable as true, the chain restarts using the new binary, post-upgrade.
If you set the variable as false, the chain must be restarted manually by the manager post-upgrade.
* IMPORTANT : Restart will only happen after the upgrade and if any error occurs during the upgrade, the chain will not restart.
DAEMON_POLL_INTERVAL (optional, default = 300ms)
This is the length of the space to poll the upgrade plan file. (e.g. 1s).
The value can either be a number (in milliseconds) or a duration (e.g. 1s).
UNSAFE_SKIP_BACKUP (defaults to false)
If you set the variable as true, the upgrade will start without any data backup.
If you wish to backup your data before upgrade, please set this variable as false or delete this settings category.
If you set the variable as false, it becomes easier to roll back and therefore, we recommend you use this feature.
DAEMON_PREUPGRADE_MAX_RETRIES (defaults to 0)
This option sets the number of pre upgrade call attempts.
If the pre upgrade call attempt reaches the set limit due to consistent failure, cosmovisor will fail to upgrade.
Following is a sample setting of the above variables.
Options can be modified in ways that suits your purpose after reading the description of each variable mentioned above.
DAEMON_HOME and DAEMON_NAME must be used as is. (Do not modify!)
The explanation above describes the option variables to run cosmovisor and in order to safely manage and use cosmovisor we recommend you add to the ~/.profile file.
source ~/.profile
3. Copying 'firmachaind' files in the proper folders
cosmovisor must be able to read and run the firmachain binary. Please execute the command provided below.
4. Registering Cosmovisor to the system (Optional)
If your server went down and you have to restart, you can let it restart automatically by registering the service. Please follow the example provided below.