I came to this thread with this exact question. I skimmed through all of the pages but did not see a response. My apologies if I missed it.
Is there any sort of watchdog possible? Or a command for the batch file that would work?
I found something posted for the older ccminer. Would this be functional for the latest z-enemy?
:loop
z-enemy -a x16r -o stratumblah:blah -u blah.blah -p x -i 23 -N 800
goto loop
I've had issues with my stratum going down for a moment and being bounced to my backup stratum. I found by adding -R 5, it stopped the problem:
@echo off
:start
z-enemy -a x16r -R 5 -o stratum+tcp://pool.minermore.com:5501 -u Accountblahblah.blah -p d=48 -o stratum+tcp://ravenminer.com:6666 -u accountblahblah -p workername
goto start