Created
December 18, 2021 17:37
-
-
Save asverty/2827d572c6a5e844edc612167af73516 to your computer and use it in GitHub Desktop.
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
#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