RSS Git Download  Clone
Raw Blame History
#!/bin/sh
################################################################################
#	TmsServer	This shell script takes care of starting and stopping
#			the TmsServer daemons
################################################################################
#
# chkconfig: 2345 99 20
# description: TmsServer is the startup for TmsServer server daemons
# processname: tmsServer

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

export PATH=/usr/tms/bin:$PATH

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting TmsServer System"
	daemon /usr/tms/bin/tmsServer
        echo
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down TmsServer System"
	killproc tmsServer
        echo
        ;;
  status)
	status tmsServer
	;;
  restart|reload)
	$0 stop
	$0 start
	;;
  *)
        echo "Usage: tmsserver {start|stop|restart|reload|status}"
        exit 1
esac

exit 0