Skip to content

Instantly share code, notes, and snippets.

@ForboleDevelopment
Last active January 15, 2021 09:47
Show Gist options
  • Save ForboleDevelopment/4d9448decf415fd77ef6a40d8e140f2f to your computer and use it in GitHub Desktop.
Save ForboleDevelopment/4d9448decf415fd77ef6a40d8e140f2f to your computer and use it in GitHub Desktop.
Script to setup the Desmos service to work without Cosmovisor
# The user is not using Cosmovisor
sudo tee $FILE > /dev/null <<EOF
[Unit]
Description=Desmos Full Node
After=network-online.target
[Service]
User=$USER
ExecStart=$GOBIN/desmos start
Restart=always
RestartSec=3
LimitNOFILE=4096
[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