Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # minerd CPU miner for LTC | EjPool
- # Requires cron daemon ("ps aux | grep crond", if nothing shows then yum/apt-get install "crond")
- # Make sure to chmod 755....
- # Written by Vual | Edit path to minerd and userpass.
- # stick script in /etc/cron.hourly
- #############################################
- # check mined
- ps -ef | grep -v grep | grep minerd
- # if not found - equals to 1, start it
- if [ $? -eq 1 ]
- then
- # EDIT path to minerd application, EDIT userpass details.
- cd /home/vual/cpuminer
- nohup ./minerd --algo scrypt -s 6 --threads 4 --url http://ejpool.info --userpass vual.centOS:x &
- else
- # already running mate ;)
- echo "eq 0 - it be running... nothing done...."
- fi
Advertisement
Add Comment
Please, Sign In to add comment