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

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

case "$1" in
	start)
		su -f -m ${USER_NAME} -c "exec %%CONTROL_SCRIPT%% start" && echo -n ' %%APP_SHORTNAME%%'
		;;
	stop)
		su -f -m ${USER_NAME} -c "exec %%CONTROL_SCRIPT%% stop" && echo -n ' %%APP_SHORTNAME%%'
		;;
	*)
		echo ""
		echo "Usage: ${MYSELF} { start | stop }"
		echo ""
		exit 64
		;;
esac