Skip to content

Commit

Permalink
iocBPMRFFEApp: update run.sh for a local system service.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericonr committed Oct 4, 2024
1 parent 8bc80a4 commit 8438290
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions iocBoot/iocBPMRFFEApp/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -ue
# Load prefix mappings
. slot-mapping.env

BPM_NUMBER=$1
CRATE_NUMBER=$(/opt/afc-epics-ioc/iocBoot/iocutca/getCrate.sh)
CRATE_NUMBER=${CRATE_NUMBER#0}

# Define which env var to use as prefix
Expand All @@ -18,7 +20,4 @@ export EPICS_PV_DEVICE_PREFIX=${!device_prefix_var}
IFS="." read -a ip <<< $RFFE_BASE_IP_ADDRESS
export RFFE_IP_ADDRESS=${ip[0]}.${ip[1]}.${ip[2]}.$(( ${ip[3]} + $BPM_NUMBER ))

socket_path=./ioc.sock
mkdir -p /var/opt/rffe-epics-ioc/autosave

procServ -f -i ^C^D -L - unix:$socket_path ./st.cmd
procServ -f -i ^C^D -L - $(( 1800 + BPM_NUMBER )) ./st.cmd

0 comments on commit 8438290

Please sign in to comment.