Bitcoin Forum
October 22, 2020, 01:37:16 AM *
News: Latest Bitcoin Core release: 0.20.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 1 LTC REWARD:Method to restart reaper periodically  (Read 3221 times)
EvilLizardApparel
Full Member
***
Offline Offline

Activity: 133
Merit: 100



View Profile
January 20, 2014, 10:45:29 PM
 #1

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 Smiley
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1603330636
Hero Member
*
Offline Offline

Posts: 1603330636

View Profile Personal Message (Offline)

Ignore
1603330636
Reply with quote  #2

1603330636
Report to moderator
1603330636
Hero Member
*
Offline Offline

Posts: 1603330636

View Profile Personal Message (Offline)

Ignore
1603330636
Reply with quote  #2

1603330636
Report to moderator
1603330636
Hero Member
*
Offline Offline

Posts: 1603330636

View Profile Personal Message (Offline)

Ignore
1603330636
Reply with quote  #2

1603330636
Report to moderator
neter
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
January 20, 2014, 10:50:28 PM
 #2

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 Wink
EvilLizardApparel
Full Member
***
Offline Offline

Activity: 133
Merit: 100



View Profile
January 21, 2014, 01:02:43 AM
 #3

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...
AB3Ham
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
January 21, 2014, 05:29:38 AM
 #4

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
EvilLizardApparel
Full Member
***
Offline Offline

Activity: 133
Merit: 100



View Profile
January 23, 2014, 02:34:56 PM
 #5

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 Smiley
jumpmanjay
Member
**
Offline Offline

Activity: 61
Merit: 10


View Profile
January 23, 2014, 04:27:26 PM
 #6

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

CoinTrader - Trade digital currency on Android via Cryptsy!

https://play.google.com/store/apps/details?id=com.sedailabs.cointrader

BitPredict - Trade your favorite events on Android via Predictious!

https://play.google.com/store/apps/details?id=com.sedailabs.bitpredict
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!