#!../../bin/linux-x86/MessageLogging_TestStand


# use lcls-dev2 CA
epicsEnvSet("EPICS_CA_ADDR_LIST", "134.79.219.255")
epicsEnvSet("EPICS_CA_SERVER_PORT", "5066")
#epicsEnvSet("EPICS_CA_ADDR_LIST", "lcls-prod01")
#epicsEnvSet("EPICS_CA_SERVER_PORT", "5068")

## You may have to change MessageLogging to something else
## everywhere it appears in this file

< envPaths

cd ${TOP}

## Register all support components
dbLoadDatabase "dbd/MessageLogging_TestStand.dbd"
MessageLogging_TestStand_registerRecordDeviceDriver pdbbase

## Load record instances
#dbLoadTemplate "db/userHost.substitutions"
#dbLoadRecords "db/dbSubExample.db", "user=niafongHost"
dbLoadRecords "db/iocLogMsgServer.db", "ACC=0"

## Set this to see messages from mySub
#var mySubDebug 1

## Run this to trace the stages of iocInit
#traceIocInit

# Enable ioc error logging
setIocLogDisable 0

#helloCallFunc("msg")
#hello("st.cmd")

cd ${TOP}/iocBoot/${IOC}
iocInit


## Start any sequence programs
#seq sncExample, "user=niafongHost"

