Added solaris scripts for starting caRepeater and iocLogServer - anj

This commit is contained in:
Janet B. Anderson
1995-03-30 23:17:59 +00:00
parent 96f58790c4
commit f0234af637
3 changed files with 87 additions and 1 deletions
+11 -1
View File
@@ -21,5 +21,15 @@ PROD = \
iocLogServer \
startCArepeater
include $(EPICS)/config/RULES.Unix
ifeq ($(T_A),solaris)
PROD += S99logServer
PROD += S99caRepeater
endif
include $(EPICS)/config/RULES.Unix
S99%: ../rc2.%
@/usr/bin/sed -e s%:EPICS:%`chdir $(EPICS); /usr/bin/pwd`% \
-e s%:INSTALL_BIN:%`chdir $(INSTALL_BIN); /usr/bin/pwd`% \
$< >$@
+41
View File
@@ -0,0 +1,41 @@
#!/bin/sh
#
# Solaris rc2 script for the EPICS CA Repeater.
#
# $Log$
#
INSTALL_BIN=:INSTALL_BIN:
EPICS=:EPICS:
# To change the default values for the EPICS Environment parameters,
# uncomment and modify the relevant lines below.
# export EPICS_CA_ADDR_LIST
# export EPICS_CA_CONN_TMO
# export EPICS_CA_BEACON_PERIOD
# export EPICS_CA_AUTO_ADDR_LIST
# export EPICS_CA_REPEATER_PORT
# export EPICS_CA_SERVER_PORT
# EPICS_CA_ADDR_LIST=""
# EPICS_CA_CONN_TMO="30.0"
# EPICS_CA_BEACON_PERIOD="15.0"
# EPICS_CA_AUTO_ADDR_LIST="YES"
# EPICS_CA_REPEATER_PORT="5065"
# EPICS_CA_SERVER_PORT="5064"
if [ $1 = "start" ]; then
if [ -x $INSTALL_BIN/startCArepeater ]; then
echo "Starting EPICS CA repeater "
$INSTALL_BIN/startCArepeater
fi
else
if [ $1 = "stop" ]; then
pid=`/usr/bin/ps -e | /usr/bin/grep caRepeat | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
if [ "${pid}" != "" ]; then
echo "Stopping EPICS CA Repeater "
/usr/bin/kill ${pid}
fi
fi
fi
+35
View File
@@ -0,0 +1,35 @@
#!/bin/sh
#
# Solaris rc2 script for EPICS IOC Log Server process.
#
# $Log$
#
INSTALL_BIN=:INSTALL_BIN:
EPICS=:EPICS:
# To change the default values for the EPICS Environment parameters,
# uncomment and modify the relevant lines below.
# export EPICS_IOC_LOG_PORT
# export EPICS_IOC_LOG_FILE_NAME
# export EPICS_IOC_LOG_FILE_LIMIT
# EPICS_IOC_LOG_PORT="6500"
# EPICS_IOC_LOG_FILE_NAME="$EPICS/logs/iocLog"
# EPICS_IOC_LOG_FILE_LIMIT="1000000"
if [ $1 = "start" ]; then
if [ -x $INSTALL_BIN/iocLogServer ]; then
echo "Starting EPICS Log Server "
$INSTALL_BIN/iocLogServer &
fi
else
if [ $1 = "stop" ]; then
pid=`/usr/bin/ps -e | /usr/bin/grep iocLogSe | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
if [ "${pid}" != "" ]; then
echo "Stopping EPICS Log Server "
/usr/bin/kill ${pid}
fi
fi
fi