Guys,
Compile and install (./autogen.sh ; CFLAGS=-O3 ./configure ; make ; make install) your minerd (git clone
https://github.com/pooler/cpuminer.git) as usual and create the following file:
file
/etc/init/ltc-miner.conf with:
description "LTC Mining"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
kill timeout 30
script
exec minerd --url http://mine.pool-x.eu:8337 --userpass UltraX.miner0:1234 -s 3
end script
And to run your minerd, type:
sudo service ltc-miner start
If the service (minerd) dies, don't worry, Ubuntu Linux will start it again automatically.
BTW, the minerd service will start up automatically on every boot.
Best!
Thiago