Any ideas?
Crashes happen with any miner now and then. You need to run bfgminer from a looping script to prevent your boards from idling.
I am using this one:
#!/bin/bash
ROOTDIR="$HOME/usr/bin"
MINER_BIN="$ROOTDIR/bfgminer"
CFG="$ROOTDIR/BEB-bfgminer.conf"
STARTLOG="$ROOTDIR/miner_startlog.txt"
LOG="$ROOTDIR/miner.log"
miner_run() {
MINER="$MINER_BIN --http-port 8332 -Q 50 -c $CFG"
echo "Starting '$MINER' at $(date)..." >> $STARTLOG
$MINER 2>> $LOG
echo "Terminated at $(date)" >> $STARTLOG
}
while true; do
miner_run
sleep 5
done
exit 0
Save this as $HOME/usr/bin/BEB-bfgminer.sh and adapt the related variables for your configuration. Run this script with screen and you have the perfect control over it for local and remote access. To have it started during boot-up, add this line to your /etc/rc.local:
sudo -uscreen -dmS "BEB-bfgminer" /home/ /usr/bin/BEB-bfgminer.sh
To attach to the miner's screen session, run
screen -r BEB-bfgminer
If you happened to forget detaching and want to attach from a different terminal / location, you can force detaching the previous session and take over with
screen -rd BEB-bfgminer
Finally, you can follow the log from local or remote sessions with
tail -f $HOME/usr/bin/miner.log
Happy mining
Thank you zefir ,this is useful to me