Files
pcas/src/util/rc2.logServer
Andrew Johnson 8e9e846c34 Build the S99 scripts on Linux.
Modified the scripts and build process to work on Linux.
2006-03-24 20:29:27 +00:00

30 lines
804 B
Bash

#!/bin/sh
#
# System-V init script for the EPICS IOC Log Server.
#
INSTALL_BIN=:INSTALL_BIN:
# 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="/path/to/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=`ps -e | sed -ne '/iocLogSe/s/^ *\([1-9][0-9]*\).*$/\1/p'`
if [ "${pid}" != "" ]; then
echo "Stopping EPICS Log Server "
kill ${pid}
fi
fi
fi