#!/bin/sh
# chkconfig: 2345 98 01
# description: start/stop control for Pixar License Server
# processname: PixarLicenseServer
# Start PixarLicenseServer
# source function library.
. /etc/rc.d/init.d/functions
LICENSE_DIR=/opt/pixar/license-5.0.2
LICENSE_FILE="$LICENSE_DIR/pixar.license"
SU="/bin/su root -c"
case "$1" in
start)
echo "Starting Pixar License Server Daemon for RenderMan software"
if [ -x "$LICENSE_DIR/PixarLicenseServer" ]; then
if [ -f "$LICENSE_FILE" ] ; then
cd "$LICENSE_DIR"
$SU ./startPixarLicenseServer.sh
echo
else
echo "ERROR Cannot run Pixar Licensing daemon: PixarLicenseServer"
echo "$LICENSE_FILE does not exist."
fi
else
echo "ERROR Cannot run Pixar Licensing daemon: PixarLicenseServer"
echo "$LICENSE_DIR/PixarLicenseServer does not exist or is not executable"
fi
;;
stop)
echo "Shutting Down Pixar License Server Daemon for RenderMan software"
cd "$LICENSE_DIR"
/usr/bin/tclsh stopPixarLicenseServer.tcl
echo
;;
*)
echo "Usage: pixarlicenseserver {start|stop}"
exit 1
esac
댓글 없음:
댓글 쓰기