Bitcoin Forum

Bitcoin => Mining support => Topic started by: robione on May 14, 2018, 12:08:49 AM



Title: How to Kill mining process on Antminers?
Post by: robione on May 14, 2018, 12:08:49 AM
I have a few miners. I haven't tried on my S9 yet but looks like the L3+s use 'screen' to launch 'cgminer'. I tried killing the cgminer process nicely (-s TERM), forcefully (-9), via ctrl+c (or ...z ... x; can't remember) after reattaching the screen. Every time it restarts. I tried chasing down this "sleep 20" process and killing the new spawn... I tried killing 'monitorcg'....

Every time all the processes killed restart (except the sleep, but I might be too slow and it finished). It didn't look there was a crontab file in '/var/spool/cron/root'.

I just did the poweroff command as a test but the idea was to shutdown mining if I wanted without getting a switched PDU. (SSH via Tor hidden service to Pi; SSH from Pi to miner, etc.) This leaves me the option of turning mining back on remotely.

Curious if anyone has been successful with this. Thx


Title: Re: How to Kill mining process on Antminers?
Post by: fanatic26 on May 14, 2018, 03:40:25 PM
Im not sure how to stop it mining without the cron restarting it but IO would recommend against using this method. The machine burns almost full power at idle in tests that I have done with the autotune firmware. You will not mine, but you will still be spending a ton on electricity.


Title: Re: How to Kill mining process on Antminers?
Post by: robione on May 15, 2018, 03:17:20 AM
I'm not sure if it is cron. In the inittab file it specifies respawn on several lines. If this is once I think it might solve the problem but I can't figure out how to use OpenWRT's version of vi. Either I'm dense or the commands aren't the same from Google searches.

(I've never used vi too... could be a contributing factor :) )


Title: Re: How to Kill mining process on Antminers?
Post by: cmanmatt on May 18, 2018, 01:49:17 AM
I had the same question a few weeks back and gave up on shutting down the mining on Antminers programatically.  I also sent a support question to Awesomeminer about it and they replied that for Antminers there isn't a good way to do it, the Antminers firmware/software will very stubbornly keep restarting the mining process.

So I opted for heavy duty smart switches instead.  Just got them running this week and just starting to try timing the off/on of my miners.  It's working but now I'm finding they don't do well starting up cold - they require a few restarts to get everything hashing/controlling right.