Files
epics-base/src/util/rc2.logServer
1999-05-17 15:09:59 +00:00

36 lines
1.0 KiB
Bash

#!/bin/sh
#
# Solaris rc2 script for EPICS IOC Log Server process.
#
# $Log$
# Revision 1.1 1995/03/30 23:17:59 jba
# Added solaris scripts for starting caRepeater and iocLogServer - anj
#
#
INSTALL_BIN=:INSTALL_BIN:
EPICS=:EPICS:
# To change the default values for the EPICS Environment parameters,
# uncomment and modify the relevant lines below.
# EPICS_IOC_LOG_PORT="6500"; export EPICS_IOC_LOG_PORT
# EPICS_IOC_LOG_FILE_NAME="$EPICS/logs/iocLog"; export EPICS_IOC_LOG_FILE_NAME
# EPICS_IOC_LOG_FILE_LIMIT="1000000"; export EPICS_IOC_LOG_FILE_LIMIT
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