Script like
#!/bin/bash
cd ~
cd /cgminer-2.6.1-x86_64-built/
./cgminer -o http://pool:port -u usr_name -p pass -I 9
Thanks for help
Hi!
I'm using this:
cat /etc/init/btc-miner.conf
description "Start BTC Mining"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 30
script
exec /usr/bin/screen -dmS CGMiner su -c '/home/miner/miner-default'
end script
file /home/miner/miner-default
/home/miner/miner-default: symbolic link to `miner-user1'
miner-user1 Bash scrypt:
#! /bin/sh
DISPLAY=:0 /home/miner/cgminer/cgminer -c /home/miner/cgminer-user1.conf
file /home/miner/cgminer
/home/miner/cgminer: symbolic link to `cgminer-2.6.1-x86_64-built'
Also the X server start-up:
cat /etc/init/xserver.conf
description "Start X Server only for mining"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 30
script
exec /usr/bin/X 2>&1
end script
Only SSH access to my rigs...
Cheers!
Thiago