summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat41/files/tomcat.sh
blob: 0b3990d7d84c4ba2ef13d67f4b95877684947322 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

JAVA_HOME=%%PREFIX%%/jdk1.1.8
export JAVA_HOME
TOMCAT_HOME=%%PREFIX%%/tomcat
export TOMCAT_HOME

case "$1" in
	start)
		if [ -x %%PREFIX%%/tomcat/bin/tomcat.sh ]; then
			%%PREFIX%%/tomcat/bin/tomcat.sh start > /dev/null && echo ' tomcat'
		fi
		;;
	stop)
		if [ -x %%PREFIX%%/tomcat/bin/tomcat.sh ]; then
			%%PREFIX%%/tomcat/bin/tomcat.sh stop > /dev/null && echo ' tomcat'
		fi
		;;
	*)
		echo ""
		echo "Usage: `basename $0` { start | stop }"
		echo ""
		exit 64
		;;
esac