Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the correct way to stop from the program #2361

Open
Boklazhenko opened this issue Mar 20, 2019 · 2 comments
Open

the correct way to stop from the program #2361

Boklazhenko opened this issue Mar 20, 2019 · 2 comments
Labels

Comments

@Boklazhenko
Copy link

Hi, is exist the correct way to stop xmrig using programming? thx

@psychocrypt
Copy link
Collaborator

Currently CTRL+C is the way to kill the miner. I started in the past to add a cleaner way #1885 but this PR was currently not excepted.

@minzak
Copy link

minzak commented Mar 25, 2019

Make service like this:

[Unit]
Description=XMR-stak service
After=network.target

[Service]
Type=simple
GuessMainPID=no
LimitMEMLOCK=infinity
#Restart=on-failure
User=root
WorkingDirectory=/opt

#RX580 4G
ExecStartPre=-/opt/ohgodatool -i  0 --set-max-power 110 --set-fanspeed 55 --core-state 7 --mem-state 2 --volt-state 12 --core-clock 1440 --mem-clock 2100
ExecStartPre=-/opt/ohgodatool -i  1 --set-max-power 90  --set-fanspeed 55 --core-state 7 --mem-state 2 --volt-state 11 --core-clock 1430 --mem-clock 2050

ExecStart=/opt/xmr-stak/xmr-stak --config /opt/xmr-stak/config.txt --amd /opt/xmr-stak/amd.txt --cpu /opt/xmr-stak/cpu.txt --poolconf /opt/xmr-stak/pools.txt

ExecStopPost=-/opt/ohgodatool -i  0 --set-fanspeed 25
ExecStopPost=-/opt/ohgodatool -i  1 --set-fanspeed 25

[Install]
WantedBy=multi-user.target

And use service xmr start and service xmr stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants