Files
epics-base/modules/ca/src/client/S99caRepeater@
2018-06-19 11:33:25 +02:00

29 lines
746 B
Bash

#!/bin/sh
#
# System-V init script for the EPICS CA Repeater.
#
INSTALL_BIN=@INSTALL_BIN@
# To change the default values for the EPICS environment parameters,
# uncomment and modify the relevant lines below. These are the only
# EPICS environment variables that the CA Repeater makes use of.
# EPICS_CA_REPEATER_PORT="5065" export EPICS_CA_REPEATER_PORT
if [ $1 = "start" ]; then
if [ -x $INSTALL_BIN/caRepeater ]; then
echo "Starting EPICS CA Repeater "
$INSTALL_BIN/caRepeater &
fi
else
if [ $1 = "stop" ]; then
pid=`ps -e | sed -ne '/caRepeat/s/^ *\([1-9][0-9]*\).*$/\1/p'`
if [ "${pid}" != "" ]; then
echo "Stopping EPICS CA Repeater "
kill ${pid}
fi
fi
fi