Can anyone please give an example of running a cron job for BFGminer on RPI to close and reopen every hour.
i have a sh file with this in
#!/bin/bash
./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20460 -u xxx.miner1 -p miner1,d=128 -S ALL --set MLD:clock=600
Any help for a Linux noob would be great, a lot of people i know with RPI are having issues with the moonlanders randommly just hash at 0 mh/s until the software is restarted.
Kind Regards
Paul
https://en.wikipedia.org/wiki/Croni have a sh file with this in
#!/bin/bash
./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20460 -u xxx.miner1 -p miner1,d=128 -S ALL --set MLD:clock=600
Any help for a Linux noob would be great, a lot of people i know with RPI are having issues with the moonlanders randommly just hash at 0 mh/s until the software is restarted.
Kind Regards
Paul
so something like this could work.
* 1 * * * killall -9 bfgminer
to make your life easier tho just use minera
https://bitcointalk.org/index.php?topic=596620.0
it has the option to do what you want internally.
one thing tho you have to expand the img to the full size of the sdcard you can do it in the rpi utils really easy.
I tried minera but I had a lot of problems in the configuration of the moonlanders and they were constantly stuck.
so I tried some configuration for the automatic restart of bfgminer in case of a device with hash 0. I found these options that can be used in the start command of bfgminer:
Code:
--cmd-idle <arg> Execute a command when a device is allowed to be idle (rest or wait)
--cmd-sick <arg> Execute a command when a device is declared sick
--cmd-dead <arg> Execute a command when a device is declared dead
but I have not found explanations on how to use them. does anyone know how they can be used?