Created
January 17, 2022 16:23
-
-
Save eriktodx/b97414df07a8a221e920303eb4b9f2dc to your computer and use it in GitHub Desktop.
/etc/systemd/system/xmrig.service
This file contains hidden or 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=High performance, open source, cross platform RandomX, KawPow, CryptoNight and AstroBWT CPU/GPU miner. | |
After=network.target | |
[Service] | |
User=root | |
Group=root | |
WorkingDirectory=~ | |
StateDirectory=xmrig | |
LogsDirectory=xmrig | |
Type=simple | |
ExecStart=/usr/bin/xmrig --config /etc/xmrig.config.json --log-file /var/log/xmrig/xmrig.log | |
StandardOutput=null | |
StandardError=null | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment