Bitcoin Forum
May 25, 2024, 05:42:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitfury stable/rpi?  (Read 802 times)
psyberwolf (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile
November 17, 2013, 01:59:57 AM
 #1

hi all,
   I currently running 7x bitfury's on my Rpi under bfgminer 3.0.99. BFGminer seems to just stop every 24 hours or so and the USB's get sick, if i restart BFGminer all seems ok and the sicks start mining again..just wondering if anyone knows and easy way i can do the following

run bfgminer on startup
set a script to reboot the pi every 24 hours.

should the sticks be doing this?. dunno if its the version of BFG or the sticks doing it,.
ive done a bit of fiddling around but figured someone may have already set this up so might as well ask.

Thanks,
Brendan.
psyberwolf (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile
November 17, 2013, 02:36:18 AM
 #2

well probably looks really messy but figured how to start at boot with making a "bfgminer" file in the /etc/init.d dir
i have little linux exp so this probably looks like garbage but works.


 #! /bin/sh
# /etc/init.d/bfgminer

### BEGIN INIT INFO
# Provides:          bfgminer
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Simple script to start a program at boot
# Description:       A simple script from www.stuffaboutcode.com which will start / stop a program a boot / shutdown.
### END INIT INFO

# If you want a command to always run, put it here

/usr/bin/bfgminer -o stratum.mining.eligius.st:3334 -u ***address here -p pass -S bitfury

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "Starting bitfury"
    # run application you want to start
 
    ;;
  stop)
    echo "Stopping bitfury"
    # kill application you want to stop

    ;;
  *)
    echo "Usage: /etc/init.d/bfgminer {start|stop}"
    exit 1
    ;;
esac

exit 0

===============

than run these 2 to get it to exec

sudo chmod 755 /etc/init.d/bfgminer

sudo update-rc.d bfgminer defaults

========

now to schedule reboot!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!