Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.
/ cosmovisor Public archive

git filter-repo fork of github.com/cosmos-sdk/cosmos/cosmovisor

License

Notifications You must be signed in to change notification settings

provenance-io/cosmovisor

Repository files navigation

Cosmosvisor (fork by Provenance Blockchain)

This repo has been archived and should no longer be used.

If you are currently using a version of Cosmovisor built by this repo, you should switch to the one built and maintained by Cosmos-SDK: https://github.com/cosmos/cosmos-sdk/tree/main/tools/cosmovisor

Migrating to the SDK's version

The file structure and most environment variables are the same. However, the command to invoke provenanced using cosmovisor has changed slightly.

To switch to the SDK's version:

  1. Stop your node.
  2. Uninstall your current cosmovisor executable.
  3. Install cosmovisor fom the SDK (Instructions).
  4. If you use the DAEMON_BACKUP_DATA_DIR environment variable, change its name to DAEMON_DATA_BACKUP_DIR.
  5. Update your execution commands to start with cosmovisor run instead of just cosmovisor. For example, if you currently execute cosmovisor start, it must be changed to cosmovisor run start.
  6. Restart your node.

Differences

Invocation

The SDK's version now has a run sub-command that must be used when invoking the configured executable (e.g. provenanced). All arguments provided to cosmovisor run <args> are provided to the configured executable the same way that this version behaves with just cosmovisor <args>.

For example, the following commands are equivalent:

  • Without cosmovisor: provenanced start
  • This version: cosmovisor start
  • SDK's version: cosmovisor run start

New Options

The SDK's version has some options that were not available in this version. See Command Line Arguments And Environment Variables for details.

The following environment variables were not available in this version but are options in the SDK's version:

  • DAEMON_RESTART_DELAY
  • UNSAFE_SKIP_BACKUP
  • DAEMON_POLL_INTERVAL
  • DAEMON_PREUPGRADE_MAX_RETRIES
  • COSMOVISOR_DISABLE_LOGS

You can view your configuration by running the cosmovisor config command in the environment where you usually run cosmovisor.

Version

Using this version, running the command DAEMON_INFO=1 cosmovisor would ouput version information. The SDK's version does not do this, but has a cosmovisor version command instead.