summaryrefslogtreecommitdiff
path: root/www/tomcat41/files/jakarta-tomcat.sh
blob: d67a00118237febf6818f935dee389fc081de205 (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
#!/bin/sh

# Set some variables
USER_NAME=%%USER_NAME%%
MYSELF=`basename $0`
CONTROL_SCRIPT=%%CONTROL_SCRIPT%%

case "$1" in
	start)
		su - ${USER_NAME} -c "%%CONTROL_SCRIPT%% start" > /dev/null ; echo -n
		;;
	stop)
		su - ${USER_NAME} -c "%%CONTROL_SCRIPT%% stop"
		;;
	restart)
		su - ${USER_NAME} -c "%%CONTROL_SCRIPT%% restart"
		;;
	*)
		echo ""
		echo "Usage: ${MYSELF} { start | stop | restart }"
		echo ""
		exit 64
		;;
esac