This thread got me thinking about the watchdog, so I have created a makeshift script version. Looking forward to a real fix, but in the meantime, here it is for anyone interested.
1. Create a batch file called CreateTask.cmd and insert the below code:[This code creates a folder C:\Program Files\RUMonitor to store the script, and creates 2 scheduled tasks, the first runs the script at startup, the second runs the script every hour on the hour. Feel free to modify the schedule to your needs]
md "C:\Program Files\RUMonitor"
Copy RUMonitor.cmd "c:\Program Files\RUMonitor"
SCHTASKS /CREATE /RU SYSTEM /SC ONSTART /TN "RUMonitor Startup" /TR "C:\Program Files\RUMonitor\RUMonitor.cmd"
SCHTASKS /CREATE /RU SYSTEM /SC HOURLY /TN "RUMonitor Hourly" /TR "C:\Program Files\RUMonitor\RUMonitor.cmd" /ST 00:00:00
2. Create a second batch script called RUMonitor.cmd and insert the below code:[This code checks to see if the RU host is running, if it is, nothing is performed. If it is not, a start command is sent to the service]
echo off
for /F "tokens=3 delims=: " %%H in ('sc query "RManService" ^| findstr " STATE"') do (
if /I "%%H" NEQ "RUNNING" (
REM Put the service to start here
net start "RManService"
)
)
3. Place both scripts in a folder together [it does not matter which folder], then run the CreateTask.cmd as administrator. That's all that is required. You will see the 2 tasks in Task Scheduler.I have created an executable of this for our own use here:
http://mcadsl.com/pub_files/RUMonitor.msiIf you would like a copy of this script source, I cannot attach it to this post, but you can download it here:
http://mcadsl.com/pub_files/RUMonitorSource.zip