#!../../bin/rhel7-x86_64/uwd

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

< envPaths

# IOCs can load settings which are common
# for all IOCs. Such as EPICS_CA_ADDR_LIST, etc...
# The file: pre_st.cmd does the trick
# </afs/slac/g/lcls/build/epics/iocCommon/All/pre_st.cmd


cd ${TOP}

## Register all support components
dbLoadDatabase("dbd/uwd.dbd")
uwd_registerRecordDeviceDriver(pdbbase)

# Load iocAdmin
epicsEnvSet("ENGINEER"  ,"Jingchen Zhou")
epicsEnvSet("LOCATION"  ,"lcls-daemon1")
epicsEnvSet("IOC_NAME"  ,"SIOC:SYS0:UW00")
dbLoadRecords("db/iocAdmin.db","IOC=SIOC:SYS0:UW00")

## Load record instances
dbLoadTemplate("db/uwd_watchdog.template")

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


## Now we need to do a favor for the IRMIS crawler
## All IOCs should dump some common info after initial
## startup.
## The file: post_st.cmd does the trick
#</afs/slac/g/lcls/build/epics/iocCommon/All/post_st.cmd
