---
# System prepended metadata

title: Setup Cosmovisor v4 for QuickSiver Innuendo-5 testnet
tags: [quicksilver, cosmovisor]

---

# Setup Cosmovisor v4 for QuickSiver Innuendo-5 testnet
###### by Raúl - Spanish Node
> Install: `go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.4.0`

1) Create new directories
```
mkdir -p ${HOME}/.quicksilverd/cosmovisor/genesis/bin
mkdir -p ${HOME}/.quicksilverd/cosmovisor/upgrades/v1.3.0/bin
```
2) Copy the current version to the Cosmovisor's genesis folder.
```
cp $(which quicksilverd) ${HOME}/.quicksilverd/cosmovisor/genesis/bin/
```
Check it, shoud be v1.3.2
`${HOME}/.quicksilverd/cosmovisor/genesis/bin/quicksilverd version`

3) Compile the new binary with tag `v1.3.2` and copy/move it to the `v1.3.0` update folder:
```
mv quicksilver/build/quicksilverd ${HOME}/.quicksilverd/cosmovisor/upgrades/v1.3.0/bin
``` 
or 
```
cp $(which quicksilverd) ${HOME}/.quicksilverd/cosmovisor/upgrades/v1.3.0/bin
```
4) Set the working folder for Cosmovisor before the ugprade.

    ```
    ln -s -T ${HOME}/.quicksilverd/cosmovisor/genesis ${HOME}/.quicksilverd/cosmovisor/current
    ```

5) Create a service file for Cosmovisor if doesn't exist
```
echo "[Unit]
Description=Cosmovisor QuickSilver Service
After=network-online.target
[Service]
User=${USER}
Environment=DAEMON_NAME=quicksilverd
Environment=DAEMON_RESTART_AFTER_UPGRADE=true
Environment=DAEMON_HOME=${HOME}/.quicksilverd
Environment=UNSAFE_SKIP_BACKUP=true 
Environment=DAEMON_RESTART_DELAY=30s 
Environment=DAEMON_LOG_BUFFER_SIZE=512
ExecStart=$(which cosmovisor) run start
Restart=always
RestartSec=3
LimitNOFILE=8192
[Install]
WantedBy=multi-user.target
" >cosmovisor.service
```
6) Replace the old service file for new (check the file names and services)
```
sudo mv cosmovisor.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl stop quicksilver.service && sudo systemctl disable quicksilver.service 
sudo systemctl enable cosmovisor.service && sudo systemctl start cosmovisor.service
```

7) Check the logs to see if everything is OK. (ctrl + C to stop).

```
sudo journalctl -fu cosmovisor -o cat
```

8) Optionally, add to .profile: 
```
nano $HOME/.profile

#cosmovisor
export DAEMON_NAME=quicksilverd
export DAEMON_LOG_BUFFER_SIZE=512
export DAEMON_RESTART_DELAY=30s
export UNSAFE_SKIP_BACKUP=false
export DAEMON_RESTART_AFTER_UPGRADE=true
export DAEMON_HOME=${HOME}/.quicksilverd

#add this to continue using quicksilverd for commands, this is optional
PATH="${HOME}/.quicksilverd/cosmovisor/current/bin:$PATH" 
```
Save it and refresh the env: 
```
source $HOME/.profile
```

Based on my own guide: 
https://github.com/BitCannaGlobal/bcna/blob/main/2.3.cosmovisor.md


###### tags: `quicksilver` `cosmovisor`