Author

Topic: Bitfury stable/rpi? (Read 831 times)

newbie
Activity: 40
Merit: 0
November 16, 2013, 09:36:18 PM
#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!
newbie
Activity: 40
Merit: 0
November 16, 2013, 08:59:57 PM
#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.
Jump to: