Last active
January 15, 2021 09:46
-
-
Save ForboleDevelopment/6eff34282fcef0341376ecf36bb433c2 to your computer and use it in GitHub Desktop.
Script to setup the Desmos service to work with Cosmovisor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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