mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-27 21:29:02 +00:00
26 lines
504 B
Bash
26 lines
504 B
Bash
#!/bin/sh
|
|
|
|
JAVA_HOME=%%PREFIX%%/jdk1.1.8
|
|
export JAVA_HOME
|
|
TOMCAT_HOME=%%PREFIX%%/tomcat
|
|
export TOMCAT_HOME
|
|
|
|
case "$1" in
|
|
start)
|
|
if [ -f %%PREFIX%%/tomcat/bin/tomcat.sh ]; then
|
|
/bin/sh %%PREFIX%%/tomcat/bin/tomcat.sh start > /dev/null && echo ' tomcat'
|
|
fi
|
|
;;
|
|
stop)
|
|
if [ -f %%PREFIX%%/tomcat/bin/tomcat.sh ]; then
|
|
/bin/sh %%PREFIX%%/tomcat/bin/tomcat.sh stop > /dev/null && echo ' tomcat'
|
|
fi
|
|
;;
|
|
*)
|
|
echo ""
|
|
echo "Usage: `basename $0` { start | stop }"
|
|
echo ""
|
|
exit 64
|
|
;;
|
|
esac
|