#!/bin/bash
#==============================================================
#  Name:  luLaunchGWConfig
#
#  Rem:   This script starts the Linac Upgrade PV Gateway
#         configuration IOC and launches the associated display.
#
#         It is terribly ugly that we restart the soft ioc each
#         time. It is because the CA connections to soft iocs on
#         dev die after a short time for a prod (or semi-prod) client. 
#
#  Usage: luLaunchGWConfig
#
#--------------------------------------------------------------

echo "Launching PV Gateway Config GUI..."

export EPICS_CAS_SERVER_PORT="5066"
export EPICS_CA_SERVER_PORT="5066"
export EPICS_CA_REPEATER_PORT="5067"
export EPICS_CA_ADDR_LIST="134.79.219.255 lcls-dev2"
export EPICS_CAS_BEACON_ADDR_LIST="134.79.219.255:5066 lcls-dev2:5066"

$EPICS_IOC_TOP/QCT/qctApp/srcDisplay/launch

exit 0

