Why not put you a loop in the script that cycles between pools? that way if the cgminer crashes or loses connection then it will auto resume.
...
All (reputable) standalone miners have a crontab entry checking the API every few minutes that restarts cgminer when it isn't mining.
Edit: also there are apps that will alert you if your hash rate drops.
So, to make sure I understand. I need to add a crontab entry to check the API? Any chance of getting some sample code or a link to an explainer so I can get that done on my Raspberry Pi?
Also, any suggestions of apps to monitor the hash rate?
Thanks for helping an old guy learn new tricks. Much 'predicated.