Title: Bitfury stable/rpi? Post by: psyberwolf on November 17, 2013, 01:59:57 AM 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. Title: Re: Bitfury stable/rpi? Post by: psyberwolf on November 17, 2013, 02:36:18 AM 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! |