diff options
Diffstat (limited to 'www/jakarta-tomcat4/files/jakarta-tomcat.sh')
-rw-r--r-- | www/jakarta-tomcat4/files/jakarta-tomcat.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/www/jakarta-tomcat4/files/jakarta-tomcat.sh b/www/jakarta-tomcat4/files/jakarta-tomcat.sh new file mode 100644 index 000000000000..d67a00118237 --- /dev/null +++ b/www/jakarta-tomcat4/files/jakarta-tomcat.sh @@ -0,0 +1,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 |