2001-05-21 08:05:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
JAVA_HOME=%%PREFIX%%/jdk1.1.8
|
|
|
|
export JAVA_HOME
|
|
|
|
TOMCAT_HOME=%%PREFIX%%/tomcat
|
|
|
|
export TOMCAT_HOME
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2001-08-05 09:37:23 +00:00
|
|
|
if [ -f %%PREFIX%%/tomcat/bin/tomcat.sh ]; then
|
|
|
|
/bin/sh %%PREFIX%%/tomcat/bin/tomcat.sh start > /dev/null && echo ' tomcat'
|
2001-05-21 08:05:38 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
stop)
|
2001-08-05 09:37:23 +00:00
|
|
|
if [ -f %%PREFIX%%/tomcat/bin/tomcat.sh ]; then
|
|
|
|
/bin/sh %%PREFIX%%/tomcat/bin/tomcat.sh stop > /dev/null && echo ' tomcat'
|
2001-05-21 08:05:38 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo ""
|
|
|
|
echo "Usage: `basename $0` { start | stop }"
|
|
|
|
echo ""
|
|
|
|
exit 64
|
|
|
|
;;
|
|
|
|
esac
|