Skip to content

Instantly share code, notes, and snippets.

@JulienKode
Last active December 20, 2017 14:41
Show Gist options
  • Save JulienKode/c9bf36acb02ba28552008145505119d9 to your computer and use it in GitHub Desktop.
Save JulienKode/c9bf36acb02ba28552008145505119d9 to your computer and use it in GitHub Desktop.
Simple service to limit XMRig usage
[Unit]
Description=XMRig Limit Daemon
After=xmrig.service
[Service]
Type=forking
GuessMainPID=no
ExecStart=/usr/bin/cpulimit -P /usr/local/bin/xmrig -l 80
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