Title: Cgminer Sentinel scrypt for windows Post by: dazz on February 08, 2014, 09:44:46 AM Hi everyone.
Been fighting the dreaded cgminer crashes for weeks. Sometimes it runs for a few days, sometimes just a couple of hours but eventually one or more cgminer instance craps out. I've given up. I'm tired of trying configs, drivers and voodoo spells, so I've written a simple powershell scrypt to look after my miners. It checks if all my cgminer threads are alive and running. If one or more threads are killed or not responding, it sends a restart signal and the computer reboots. Obviously the miners need to be launched from the Startup menu in windows. Code: Set-ExecutionPolicy RemoteSigned Just save that code in a file with a ps1 extension, something like sentinel.ps1 for example. Then launch your miners from a batch, using start so that they run on their own threads, then in the same batch, run the sentinel scrypt in it's own thread too. Use sleeps to ensure Windows has time to load completely and all cgminer instances are running before the sentinel starts running. Code: sleep 30 |