cgminer shell script for watchdog functions