If you leave the main window closed, but don't log off, it's still running and I find crashing is way less of a problem...
If/when it does break, I use the following...
Keep Running checks that the process is running, and a batch file restarts it and sends me an email...
; Keep Running v1.2 Configuration File
; full path of executable to be started for the first time
Start=
; wait X seconds before checking for the first time
Delay=10
; full path of executable to be checked
Detect=C:\Program Files (x86)\Vitamin D Video\Vitamin D Agent.exe
; check the running processes list every X seconds
Interval=45
; full path of executable to be re-launched
Launch=C:\AUTOMATION\keeprunalarm.bat
; reboot if the detected process quits
Reboot=No
File "keeprunalarm.bat" as follows...
@ECHO OFF
CLS
IF EXIST C:\AUTOMATION\keeprunalert.txt goto done
ECHO. NOTIFYING OF PROBLEM at %DATE% %TIME%
ECHO NOTIFYING OF PROBLEM at %DATE% %TIME% >> keeprunlog.txt
ECHO.
ECHO Turn on strobe...
C:\AUTOMATION\R2Xctrl.exe 1, 2, On
ECHO Send an email...
C:\AUTOMATION\sendEmail.exe -f
[email protected] -t
[email protected] -u "server4 PROBLEM" -m "server4 reports vitamin D is DOWN" -s 192.168.0.4
ECHO Already sent > keeprunalert.txt
goto :done
:done
ECHO EXITING.
ECHO.
SLEEP 2
EXIT