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
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:
- Stop your node.
- Uninstall your current
cosmovisor
executable. - Install
cosmovisor
fom the SDK (Instructions). - If you use the
DAEMON_BACKUP_DATA_DIR
environment variable, change its name toDAEMON_DATA_BACKUP_DIR
. - Update your execution commands to start with
cosmovisor run
instead of justcosmovisor
. For example, if you currently executecosmovisor start
, it must be changed tocosmovisor run start
. - Restart your node.
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
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
.
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.