diff --git a/src/util/Makefile.Unix b/src/util/Makefile.Unix index 1d73c8189..60bc4dbee 100644 --- a/src/util/Makefile.Unix +++ b/src/util/Makefile.Unix @@ -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`% \ + $< >$@ diff --git a/src/util/rc2.caRepeater b/src/util/rc2.caRepeater new file mode 100644 index 000000000..bbd13c616 --- /dev/null +++ b/src/util/rc2.caRepeater @@ -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 + diff --git a/src/util/rc2.logServer b/src/util/rc2.logServer new file mode 100644 index 000000000..7d148e222 --- /dev/null +++ b/src/util/rc2.logServer @@ -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 +