Skip to content
Snippets Groups Projects
Commit 165b44c5 authored by Pete Jemian's avatar Pete Jemian
Browse files

add shell script to avoid starting a 2nd instance of this IOC

parent bf7d45fd
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# ensure that multiple, simultaneous IOCs are not started by this user ID
MY_UID=`id -u`
IOC_PID="`/usr/bin/pgrep xxx -u ${MY_UID}`"
if [ "" != "${IOC_PID}" ] ; then
echo "xxx IOC is already running, won't start a new one, PID=${IOC_PID}"
exit 1
fi
# start the IOC
../../bin/${EPICS_HOST_ARCH}/xxx st.cmd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment