so only AWS or go buy RAM ? coin for the rich..
Although screen is fine, for those who don't want to mess with it, minerd can be run as a service through ubuntu's upstart.
[...]
ADDR=`cat /home/ubuntu/ADDRESS`
THREADS=`cat /home/ubuntu/NUM_THREADS`
cat > ramhogminer.conf << EOF
description "ramhog miner"
start on runlevel [2345]
stop on runlevel [!2345]
nice 5
respawn
respawn limit 3 10
exec /home/ubuntu/shinyminer/minerd -a ramhog -o stratum+tcp://106.3.225.46:6666 -u $ADDR -p x -t $THREADS --syslog
EOF
sudo mv ramhogminer.conf /etc/init/
sudo service ramhogminer start
To check minerd output:
tail -f /var/log/syslog
Control the ramhogminer service with the following:
sudo service ramhogminer start
sudo service ramhogminer stop
sudo service ramhogminer status
sudo service ramhogminer restart