Professional Documents
Culture Documents
Raidcom Dic Raid RM Patch
Raidcom Dic Raid RM Patch
#
# NAME : A sample for starting HORCM #0 from a service.
# This file is an example for running the service process for HORCM #0,
#
# [NOTE]:
# - This file should be protected by specifiying the permissions.
INTERROGATE: 30
C:\HORCM\etc\raidqry.exe -l
if !0
then
call RESTART:
fi
exit
STOP:
C:\HORCM\etc\raidqry.exe -l
if 0
C:\HORCM\etc\horcmshutdown.exe
else
echo "Detected Shutdown !!!"
exit 0
fi
exit
RESTART:
echo "Detected Shutdown !!!"
C:\HORCM\etc\horcmstart.exe
if 0
echo "Restarted from failure !!!"
else
echo "We will stop INTERROGATE because of failure for re-starting !!!"
fi
exit
HINTERROGATE:
echo "Called interrogate as EVENT !!!"
exit 0
# [1] DESCRIPTION:
#
# This file will be executed via SVCEXE.EXE registered as the service process, and
# should be named as below.
# If the path name registerd to the service is 'C:\DIR...\svcexe.exe' and the name
# is 'HORCMSTART',then this file need to be named as
'C:\DIR...\HORCMSTART_run.txt'.
#
# SVCEXE.EXE executes the label entry which was written in this file as the service
# event, and the results are logged as 'C:\DIR...\HORCMSTART_log.txt'.
# The following entrys which was defined as the service event will be called from a
###################################################################################
#######
# For speed up interpreting, please execute without unnecessary comments.
###################################################################################
#######