Skip to content

Instantly share code, notes, and snippets.

@anoochit
Created April 13, 2022 04:06
Show Gist options
  • Save anoochit/4b2f04762805450c2230933707049448 to your computer and use it in GitHub Desktop.
Save anoochit/4b2f04762805450c2230933707049448 to your computer and use it in GitHub Desktop.
mars unit file for systemd
#/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