Created
September 23, 2017 02:10
-
-
Save Ernillew/38762b95432b05194d06dd7d208624a0 to your computer and use it in GitHub Desktop.
systemd-unit for xmrig
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 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 |
Would it be wrong to use Type=simple
here?
Would it be wrong to use
Type=simple
here?
Indeed, I could not get it to work as Type=forking (It would hang indefinitely if I did "systemctl start xmrig.service"). It had to be Type=simple, then it was fine.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My version with root access for randomx 1gb pages and custom json based on hostname