test ArchiveEngine monitor
alarm if engine is not running
This commit is contained in:
5
iocBoot/iocarchivemon/Makefile
Normal file
5
iocBoot/iocarchivemon/Makefile
Normal 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
18
iocBoot/iocarchivemon/st.cmd
Executable 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
|
Reference in New Issue
Block a user