Bitcoin Forum
April 26, 2024, 08:08:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining support / Re: Miners terminate after about a day on: August 17, 2015, 03:27:59 PM
I created a script to check for the cgminer process, checkminer.sh:
Code:
#!/bin/bash
ps cax | grep cgminer > /dev/null
if [ $? -eq 1 ]; then
/bin/bash /root/launchminer.sh
fi

Then created launchminer.sh:
Code:
#!/bin/bash
screen -dmS cgminer sudo /root/cgminer/cgminer --bmsc-options 115200:0.57 -o stratum+tcp://solo.ckpool.org:3333 -u [mybtcaddress] -p x  --bmsc-voltage 0800 --bmsc-freq 1286

then using crontab run the script every minute:
Code:
1 * * * * /bin/bash /root/checkminer.sh

Seems to be working to keep the miners online.
2  Bitcoin / Mining support / Re: Miners terminate after about a day on: August 14, 2015, 04:55:39 PM
cd /root/cgminer
screen -dmS cgminer sudo ./cgminer --bmsc-options 115200:0.57 -o stratum+tcp://solo.ckpool.org:3333 -u btcaddress.0 -p x --bmsc-voltage 0800 --bmsc-freq 1286

in rc.local

I'm wondering if minera would be a better Raspberry Pi platform to use instead of raspbian and using the auto-reconnect/reboot feature. I tried loading minera but I didn't spend enough time on it to get it running.
3  Bitcoin / Mining support / Miners terminate after about a day on: August 13, 2015, 11:28:02 AM
I am a new miner, FYI.
Will the screen command time out after a certain amount of time or is my controller shutting down the process?

I managed to get two U3 miners online controlled by a raspberry pi b+ with the screen command. It's happened twice where both miners go offline after about a day of mining. I've set the miners to execute from command line with screen in rc.local using cgminer.
Yesterday I executed screen -x cgminer and left it on in the terminal only to find later both were offline. The terminal window said screen cgminer terminated. I rebooted and both miners came back on.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!