Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: EvilLizardApparel on January 20, 2014, 10:45:29 PM



Title: 1 LTC REWARD:Method to restart reaper periodically
Post by: EvilLizardApparel on January 20, 2014, 10:45:29 PM
Hey,

   Reaper always crashes and stops mining every hour or two. I need a batch file,script,tool, or some method to restart the instance of reaper for me every hour without me having to screw with it. Post your method and an LTC address. I will go down the list and try a method until one works. That person will get the Litecoin tomorrow after the methods been proven to work. Then please confirm you get your coin.

Thanks for your time :)


Title: Re: 1 LTC REWARD:Method to restart reaper periodically
Post by: neter on January 20, 2014, 10:50:28 PM
do you have a screenshot for the error? or can you describe in more detail. i can handle that for you, plus without blindly restarting every hour but checking it the error is there or not if you like the solution, you can send me some more for the elasticity of the solution ;)


Title: Re: 1 LTC REWARD:Method to restart reaper periodically
Post by: EvilLizardApparel on January 21, 2014, 01:02:43 AM
Well it doesn't completely "crash" persay. My reported hashrate on the pool goes to zero, and reaper reports strange hashrate or negative hashrate value. Restarting reaper fixes the issue for a short amount of time. That's why I want a way to restart it ever got automatically. Even if its only a 4 line batch file or script or something...


Title: Re: 1 LTC REWARD:Method to restart reaper periodically
Post by: AB3Ham on January 21, 2014, 05:29:38 AM
ReaperController has an option to restart Reaper at a defined interval. Find it here: http://www.reddit.com/r/litecoinmining/comments/1byu07/i_made_a_reaper_gui_version_try_it_out/

I needed to use it awhile ago because the drivers were crashing for some reason on the 5870 I was mining with. It's a bandaid fix for a bigger problem as others have noted.

LebRL1AW2b4gM3x7ZeBpj98T5QT9bATYU2


Title: Re: 1 LTC REWARD:Method to restart reaper periodically
Post by: EvilLizardApparel on January 23, 2014, 02:34:56 PM
Just saw your post, will test today. If reaper goes until tonight and successfully restarts at the intervals (assuming it will?) Ill be sending your coin :)


Title: Re: 1 LTC REWARD:Method to restart reaper periodically
Post by: jumpmanjay on January 23, 2014, 04:27:26 PM
If you just want something simple, you could try this python (3.3) script:

Code:
#!/usr/bin/env python

import sys, os, time, subprocess, optparse
from optparse import OptionParser

def runProcess(exe, t):
   p = subprocess.Popen(exe)
  
   if p.pid != None:
      time.sleep(float(t))
      p.terminate()
      time.sleep(10)

def main():
   usage = "usage: %prog [options]"
   parser = OptionParser(usage)
   parser.add_option('-e', '--exe', action='store', dest='exe', default=None, help='specify executable')
   parser.add_option('-t', '--time', action='store', dest='t', default=None, help='specify time interval (in seconds) for auto-restart')
  
   if len(sys.argv) == 1:
      parser.print_help()
      sys.exit(1)
   (options, args) = parser.parse_args()
  
   if options.exe == None or options.t == None:
      parser.print_help()
      sys.exit(1)
  
   try:
      while(True):
         runProcess(options.exe, options.t)
   except (KeyboardInterrupt, SystemExit):
         print("quitting")
         exit(1)
  
   exit(1)
      
if __name__ == '__main__':
   main()

Save the file as "autorefresh.py," install python 3.3, then just enter "py autorefresh.py -e reaper -t 7200" to have it auto-restart in 2 hrs.

LMyyektyV629HbbrSR3WRu9TycnYRgiKXK