Debian Codegraph @

modules/ca/src/client/S99caRepeater@

raw
1 #!/bin/sh
2 #
3 # System-V init script for the EPICS CA Repeater.
4 #
5
6 INSTALL_BIN=@INSTALL_BIN@
7
8 # To change the default values for the EPICS environment parameters,
9 # uncomment and modify the relevant lines below. These are the only
10 # EPICS environment variables that the CA Repeater makes use of.
11
12 # EPICS_CA_REPEATER_PORT="5065" export EPICS_CA_REPEATER_PORT
13
14 if [ $1 = "start" ]; then
15 if [ -x $INSTALL_BIN/caRepeater ]; then
16 echo "Starting EPICS CA Repeater "
17 $INSTALL_BIN/caRepeater &
18 fi
19 else
20 if [ $1 = "stop" ]; then
21 pid=`ps -e | sed -ne '/caRepeat/s/^ *\([1-9][0-9]*\).*$/\1/p'`
22 if [ "${pid}" != "" ]; then
23 echo "Stopping EPICS CA Repeater "
24 kill ${pid}
25 fi
26 fi
27 fi
28