WyvernTKC / cpuminer-gr-avx2

Optimised Version of GR miner for RTM
GNU General Public License v2.0
375 stars 195 forks source link

How to stop the miner when it's running in the background? #133

Open danjylon opened 2 years ago

danjylon commented 2 years ago

How to stop the miner when it's running in the background?

michal-zurkowski commented 2 years ago

In windows just search for the process in Task Manager On Linux you can kill it like this for example: sudo pkill cpuminer

danjylon commented 2 years ago

It doesn't work. When I set background true in config.json, the miner restart automaticly after I stop it in task manager. That's why I ask here.

danjylon commented 2 years ago

Even taskkill command in cmd can't help.

michal-zurkowski commented 2 years ago

On Windows the script is looping over. So you might want to close batch script. Maybe try editing config.json without background and kill process?

danjylon commented 2 years ago

Tried and falied,I can‘t stop it in any way except restarting the computer.

michal-zurkowski commented 2 years ago

If you want to run miner in the background, it might be a good idea to remove looping fragment from cpuminer.bat. Try to remove line 251 goto StartMiner

danjylon commented 2 years ago

Yeah, that can help, thanks very much!

JEmlay commented 2 years ago

Removing goto StartMiner from the bat file would help for future runs but if you're already stuck running it stop trying to kill the cpuminer process and look for cmd.exe. Kill that instead.

thecarpetjasp commented 2 years ago

You need to kill Windows Command Processor BEFORE you kill cpuminer-sse42.exe

Windows Command Processor is the batch file you initially run which is why it keeps restarting it, because that's what initially keeps starting the actual executable.