#!../../bin/linux-x86_64/EC-GN
#+======================================================================
# $HeadURL: https://svnpub.codac.iter.org/codac/iter/codac/dev/units/m-epics-iter-templates/branches/codac-core-6.1/templates/genericBoot/ioc/st.cmd $
# $Id: st.cmd 96475 2019-01-09 13:47:38Z sivecm $
#
# Project       : CODAC Core System
#
# Description   : ITER ioc template EPICS start up file
#
# Author(s)     : This file was generated by CODAC development toolkit
#
# Copyright (c) : 2010-2019 ITER Organization,
#                 CS 90 046
#                 13067 St. Paul-lez-Durance Cedex
#                 France
#
# This file is part of ITER CODAC software.
# For the terms and conditions of redistribution or use of this software
# refer to the file ITER-LICENSE.TXT located in the top level directory
# of the distribution package.
#
#-======================================================================

< envPaths
< envSystem
< envUser

cd "${TOP}"

############################################################################
## Register all support components
############################################################################

dbLoadDatabase "dbd/CUB.dbd"
EC_GN_registerRecordDeviceDriver pdbbase

< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/sddPreDriverConf.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/userPreDriverConf.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/threadSchedulingConf.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/dbToLoad.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/iocEC-GN-PSH0CUB-preSaveRestore.cmd"

############################################################################
## IOC Logging
############################################################################
iocLogInit
iocLogPrefix "${STY} : "

############################################################################
## IOC initialization
############################################################################
cd "${TOP}/db"
iocInit

< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/iocEC-GN-PSH0CUB-postSaveRestore.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/sddSeqToLoad.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/seqToLoad.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/sddPostDriverConf.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0CUB/userPostDriverConf.cmd"


dbl > "${CODAC_VAR}/iocdump/${UNIT_NAME}/${IOC_NAME}-${IOC_BOOT_TIME}.dbl"
dbla > "${CODAC_VAR}/iocdump/${UNIT_NAME}/${IOC_NAME}-${IOC_BOOT_TIME}.dbla"
dbior > "${CODAC_VAR}/iocdump/${UNIT_NAME}/${IOC_NAME}-${IOC_BOOT_TIME}.dbior"
dbhcr > "${CODAC_VAR}/iocdump/${UNIT_NAME}/${IOC_NAME}-${IOC_BOOT_TIME}.dbhcr"

#- End-of-file marker - do not delete or add lines below!
