vual

Shell Script For CPU Miner Daemon LTC mining cron controller

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