Bitcoin Forum
December 10, 2018, 04:50:34 PM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Watchdog - run unstable builds unsupervised  (Read 8867 times)
EricJ2190
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
July 26, 2010, 09:12:37 PM
 #1

I made a small tool for running some of the builds with stability issues. It checks every minute for a running instance of bitcoin. If it fails to locate one, it starts a new one. To use it, simply put the Watchdog.exe from bin\Release in the same folder as Bitcoin.exe and run Watchdog.exe. You can even pass it command line arguments which are passed on to Bitcoin.exe. You will need .NET Framework 2.0. C# source code is included.

edit: changed to start bitcoin minimized
edit 2: added interval setting and lowered default interval to 10 seconds
1544460634
Hero Member
*
Offline Offline

Posts: 1544460634

View Profile Personal Message (Offline)

Ignore
1544460634
Reply with quote  #2

1544460634
Report to moderator
1544460634
Hero Member
*
Offline Offline

Posts: 1544460634

View Profile Personal Message (Offline)

Ignore
1544460634
Reply with quote  #2

1544460634
Report to moderator
100% New Software
PC, Mac, Android, & HTML5 Clients
Krill Rakeback
Low Rake
Bitcoin Poker 3.0
Bad Beat Jackpot
SwC Poker Relaunch
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1544460634
Hero Member
*
Offline Offline

Posts: 1544460634

View Profile Personal Message (Offline)

Ignore
1544460634
Reply with quote  #2

1544460634
Report to moderator
1544460634
Hero Member
*
Offline Offline

Posts: 1544460634

View Profile Personal Message (Offline)

Ignore
1544460634
Reply with quote  #2

1544460634
Report to moderator
knightmb
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


mymdn.io


View Profile WWW
July 26, 2010, 10:17:00 PM
 #2

Here's me showing my age  Embarrassed

I created a batch file and put it in the same folder at BitCoin.exe

Just create a file, like bitcoin.bat

Edit the file and paste in
Code:
echo off
:10
echo Starting BitCoin Crazy Unstable But Oh So Fast!
start /wait bitcoin.exe
date /t
time /t
ping -n 1 -w 5000 1.1.1.1
goto 10

Save the file and use it to start BitCoin. If the program crashes, it will log to console when and restart the client. This only works in the Windows Client GUI, won't work for services.

I figured I would add this if it's helpful to anyone.




      ▄▄          ▄▄
     ▄███▄      ▄███▄
     ███████▄ ▄██████▄
    ██████████████████▄
   ███████████████████
  ▄█████████████████████
 ▄███████████████████████
▄█████████████████████████
███████████████████████████
▀▀███████████████████████▀▀
    ▀▀███████████████▀▀
        ▀▀██████▀▀
            ▀
Meridian

myMDN.io
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Digital Collateral


JOIN ICO
Quantumplation
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
July 28, 2010, 01:41:27 PM
 #3

Here's me showing my age  Embarrassed

I created a batch file and put it in the same folder at BitCoin.exe

Just create a file, like bitcoin.bat

Edit the file and paste in
Code:
echo off
:10
echo Starting BitCoin Crazy Unstable But Oh So Fast!
start /wait bitcoin.exe
date /t
time /t
ping -n 1 -w 5000 1.1.1.1
goto 10

Save the file and use it to start BitCoin. If the program crashes, it will log to console when and restart the client. This only works in the Windows Client GUI, won't work for services.

I figured I would add this if it's helpful to anyone.

Very similar to the one I've been using, actually

Code:
echo off
cd "C:\Program Files (x86)\Bitcoin"
echo Bitcoin Instability Manager
:loop
start /wait Bitcoin.exe
ping -n 1 -w 5000 1.1.1.1 >NUL
date /t
date /t >> log.txt
time /t
time /t >> log.txt
echo Bitcoin crashed, restarting it.
echo Bitcoin crashed, restarting it. >> log.txt
echo. >> log.txt
goto loop

Then you have to run it as administrator (Win7 anyway) so that it can write to the log file.
I also had to follow this: http://www.raymond.cc/blog/archives/2009/08/12/disable-program-has-stopped-working-error-dialog-in-windows-server-2008/ (ignore the first command) to get it to work, as when it would crash, that dialog would pop up and prevent the program from fully closing (thus not allowing the batch file to continue).

BITSONG
████
████
████
████
████    ████
████    ████
████    ████
████    ████
████    ████
████    ████

            ████
            ████
            ████
            ████
████    ████
████    ████
████    ████
████    ████
████    ████
████    ████
██
██
██
██
██        ██
██  ██  ██  ██
██  ██  ██  ██
██  ██  ██  ██
██  ██  ██  ██
      ██  ██  ██
            ██
■∎▪▪▪▪▪   TELEGRAM   ▪▪▪▪▪∎■
⇪  CHANNEL   ⇪    GROUP   ⇪
Twitter  Facebook  Medium
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!