#!/bin/sh

case "$1" in
start)
	/usr/local/tomcat/bin/catalina.sh start
	/usr/local/tomcat1/bin/catalina.sh start
	/usr/local/tomcat2/bin/catalina.sh start

	echo "tomcat started"
	;;

stop)
	/usr/local/tomcat/bin/catalina.sh stop
	/usr/local/tomcat1/bin/catalina.sh stop
	/usr/local/tomcat2/bin/catalina.sh stop

	echo "tomcat stoped"
	;;

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

esac