Skip to content

Instantly share code, notes, and snippets.

@pasrom
Forked from Ernillew/xmrig.service
Created February 27, 2018 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pasrom/fa352b8b3193e87d5cf256d1e854612c to your computer and use it in GitHub Desktop.
Save pasrom/fa352b8b3193e87d5cf256d1e854612c to your computer and use it in GitHub Desktop.
systemd-unit for xmrig
[Unit]
Description=XMRig Daemon
After=network.target
[Service]
Type=forking
GuessMainPID=no
ExecStart=/usr/local/bin/xmrig -c /home/miner/config/config.json -l /home/miner/xmrig.log -B
Restart=always
User=miner
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment