Last active
December 20, 2017 14:41
-
-
Save JulienKode/c9bf36acb02ba28552008145505119d9 to your computer and use it in GitHub Desktop.
Simple service to limit XMRig usage
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
[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