Hello all,
Can you please share some tips on how to start to mine automatically after each reboot?
I tried putting the mining command in a script and that script in /etc/rc.local
This does not seem to work.
The content of the script is:
#!/bin/bash
#mine @ flypool with optiminer
cd /home/user/optiminer-zcash;
screen -S optiminer0 ./optiminer-zcash -s eu1-zcash.flypool.org:3333 -u xxxx.amd0 -d 1;
I am using Ubuntu 16.04.1
Thank you.
I launch a screen per GPU, but I think what you want is just
>> screen -dmS myscreenname -m sh -c "/full/path/to/optiminer-zcash -s $POOL -u $USER -p $PASSWORD"
Here is a snippet of my startup script, launched from rc.local
DEVICES=`lspci | grep VGA | grep AMD | wc -l`
MAXCARDNUM=$(expr $DEVICES - 1)
for x in `seq 0 $MAXCARDNUM` ; do
cat << EOF >./screenrc.$x
logfile ./screenlog.$x
EOF
echo "$COIN Launching Miner #$x on screen$x"
echo "./optiminer-zcash -s $POOL -u $USER -p $PASSWORD -d $x -i $i"
screen -c ./screenrc.$x -L -fn -dmS screen$x -m sh -c "./optiminer-zcash -s $POOL -u $USER -p $PASSWORD -d $x"
done