Skip to content

Instantly share code, notes, and snippets.

@asverty
Created December 18, 2021 17:37
Show Gist options
  • Save asverty/2827d572c6a5e844edc612167af73516 to your computer and use it in GitHub Desktop.
Save asverty/2827d572c6a5e844edc612167af73516 to your computer and use it in GitHub Desktop.
#Create service file in one cmd
sudo tee /etc/systemd/system/evmosd.service > /dev/null <<EOF
[Unit]
Description=Evmos
After=network.target
[Service]
Type=simple
User=$USER
WorkingDirectory=/usr/local/bin
ExecStart=/root/go/bin/evmosd start
Restart=on-failure
RestartSec=10
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
#Check service file
cat /etc/systemd/system/evmosd.service
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment