#!/bin/sh
#
# Sun_MsgSvr - boot script to start/stop Sun Java System Messaging Server
#
#
# Following stuff is necessary for chkconfig (RedHat 6.x)
#
# chkconfig: 345 92 08
# description: starts and stops Sun Java System Messaging Server
#   in <msg.RootPath>
#

me=`basename $0`

# See how we were called.
case "$1" in
  start)
	echo -n "Starting Sun Java System Messaging Server in <msg.RootPath> :"
        <msg.RootPath>/sbin/start-msg

<line:linux># this line necessary for RedHat 6.x
<line:linux>	touch /var/lock/subsys/$me
	echo
	;;

  stop)
	echo -n "Stopping Sun Java System Messaging Server in <msg.RootPath> :"
        <msg.RootPath>/sbin/stop-msg

<line:linux># this line necessary for RedHat 6.x
<line:linux>	rm -f /var/lock/subsys/$me
	echo
	;;

  *)
	echo "Usage: $me { start | stop }"
	exit 1
	;;
esac

exit 0


