Skip to content
Snippets Groups Projects
run 355 B
Newer Older
25-ID Staff Account's avatar
25-ID Staff Account committed
#!/bin/sh

# ensure that multiple, simultaneous IOCs are not started by this user ID

MY_UID=`id -u`
IOC_PID="`/usr/bin/pgrep 25idBLEPS\$ -u ${MY_UID}`"

if [ "" != "${IOC_PID}" ] ; then
  echo "25idBLEPS IOC is already running, won't start a new one, PID=${IOC_PID}"
  exit 1
fi

# start the IOC
cd ..
../../bin/${EPICS_HOST_ARCH}/25idBLEPS st.cmd.Linux