Created
April 13, 2022 04:06
-
-
Save anoochit/4b2f04762805450c2230933707049448 to your computer and use it in GitHub Desktop.
mars unit file for systemd
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
#/etc/systemd/system/marsd.service | |
[Unit] | |
Description=Mars Node | |
After=network.target | |
[Service] | |
Type=simple | |
User=root | |
WorkingDirectory=/root | |
ExecStart=/root/go/bin/marsd start -- | |
StandardOutput=file:/var/log/marsd/marsd.log | |
StandardError=file:/var/log/marsd/marsd_error.log | |
Restart=on-failure | |
RestartSec=3 | |
LimitNOFILE=4096 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment