Hi everyone!
Last night I started working on a script to monitor cgminer and restart it when it crashes. I've tried it out during the day and it is pretty stable now so I thought I'd share it with you all.
All in all it consists of two files, a powershell script and an optional batch file. The powershell script parses cgminer's log and looks for "bad" words, like SICK, DEAD, etc. Whenever it detects one of these words in the log it kills the cgminer process (as well as WerFault.exe, which is the standard windows 7 error message informing the user of an app crash).
After the cgminer process is killed it starts a new instance of cgminer by calling the accompanying startmine.bat file. If you don't like batch files you can easily configure the script to start cgminer.exe directly (more info on the github).
Tell me what you think about it or if you have any issues just ask me here or add a new issue on the github.
Github:
https://github.com/dbsnurr/cgminer-keep-alive