diff options
author | znerd <znerd@FreeBSD.org> | 2002-02-21 16:59:45 +0800 |
---|---|---|
committer | znerd <znerd@FreeBSD.org> | 2002-02-21 16:59:45 +0800 |
commit | ab5b37c4f849a1a67193c2363f5e9953a94b0b22 (patch) | |
tree | 694ee0d7ba834502286c293fbe8f55aece8621fd /www/jakarta-tomcat3 | |
parent | 049e0ded186a700a2cd5333319ca1097fe8845b7 (diff) | |
download | freebsd-ports-gnome-ab5b37c4f849a1a67193c2363f5e9953a94b0b22.tar.gz freebsd-ports-gnome-ab5b37c4f849a1a67193c2363f5e9953a94b0b22.tar.zst freebsd-ports-gnome-ab5b37c4f849a1a67193c2363f5e9953a94b0b22.zip |
Startup script to be installed in ${PREFIX}/etc/rc.d/.
Diffstat (limited to 'www/jakarta-tomcat3')
-rw-r--r-- | www/jakarta-tomcat3/files/jakarta-tomcat.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/www/jakarta-tomcat3/files/jakarta-tomcat.sh b/www/jakarta-tomcat3/files/jakarta-tomcat.sh new file mode 100644 index 000000000000..d67a00118237 --- /dev/null +++ b/www/jakarta-tomcat3/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 |