Skip to content

Instantly share code, notes, and snippets.

@ForboleDevelopment
Last active January 15, 2021 09:46
Show Gist options
  • Save ForboleDevelopment/6eff34282fcef0341376ecf36bb433c2 to your computer and use it in GitHub Desktop.
Save ForboleDevelopment/6eff34282fcef0341376ecf36bb433c2 to your computer and use it in GitHub Desktop.
Script to setup the Desmos service to work with Cosmovisor
sudo tee $FILE > /dev/null <<EOF
[Unit]
Description=Desmos Full Node
After=network-online.target
[Service]
User=$USER
ExecStart=$GOBIN/cosmovisor start
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=desmos"
Environment="DAEMON_HOME=$HOME/.desmos"
Environment="DAEMON_RESTART_AFTER_UPGRADE=on"
[Install]
WantedBy=multi-user.target
EOF
echo "===> Restarting service <==="
sudo systemctl stop desmosd
sudo systemctl daemon-reload
sudo systemctl start desmosd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment