test ArchiveEngine monitor

alarm if engine is not running
This commit is contained in:
Michael Davidsaver
2014-02-17 15:51:59 -05:00
parent e314f77805
commit 5882d518ee
5 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,5 @@
TOP = ../..
include $(TOP)/configure/CONFIG
ARCH = linux-x86_64
TARGETS = envPaths
include $(TOP)/configure/RULES.ioc

18
iocBoot/iocarchivemon/st.cmd Executable file
View File

@ -0,0 +1,18 @@
#!../../bin/linux-x86_64/softIocPy2.6
< envPaths
dbLoadDatabase("../../dbd/softIocPy.dbd",0,0)
softIocPy_registerRecordDeviceDriver(pdbbase)
py "import logging"
py "logging.basicConfig(level=logging.INFO)"
epicsEnvSet("BASE","/var/cache/channelarchiver")
epicsEnvSet("PPAT","The original process ID was ([0-9]+)")
dbLoadRecords("../../db/pidmon.db","N=ACC-CT{Bck}General-I,SCAN=10 second,FILE=$(BASE)/general/archive_active.lck,PAT=$(PAT)")
iocInit()
dbl > records.dbl