Title: Bitcoin Watchdog - run unstable builds unsupervised Post by: EricJ2190 on July 26, 2010, 09:12:37 PM 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 Title: Re: Bitcoin Watchdog - run unstable builds unsupervised Post by: knightmb on July 26, 2010, 10:17:00 PM Here's me showing my age :-[
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 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. Title: Re: Bitcoin Watchdog - run unstable builds unsupervised Post by: Quantumplation on July 28, 2010, 01:41:27 PM Here's me showing my age :-[ 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 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 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). |