Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 486 Bytes
#start and stop the miner"
#the script must be placed in the directory /etc/init/
start on runlevel [2345]
stop on runlevel [^2345]
console output
chdir /home/miner/cpuminer-neoscrypt/
script
HOSTNAME=`hostname -s`
#you need to have a working minerd.conf
exec su root -c "./minerd -c minerd.conf -u TheMiner.${HOSTNAME} >> miner.log 2>&1"
#if the command do not work, try :
#exec ./minerd -c minerd.conf -u TheMiner.${HOSTNAME}
end script