Re: diagnostic settings
Posted: Sun 26 Apr 2015 2:47 pm
Here is the version I have put on my server - I have only been caught once, but it was a pain. I save the below in the CumulusMX folder as testMXrunningT.bat, have Cumulus process it at my update interval (5 minutes) to file name testMXrunning.bat, then have that as my external program.
Code: Select all
Setlocal EnableDelayedExpansion
if '<#DataStopped>'=='1' (
if not exist stopping.flag (
echo Cumulus stopping @ %time% > stopping.flag
taskkill /im CumulusMX.exe
:loop
tasklist | find /i "CumulusMX"
if %errorlevel% == 1 (
del stopping.flag
rem Optionally restart Cumulus here.
) else (
timeout 5
goto loop
)
)
)