diff options
author | Ernst de Haan <znerd@FreeBSD.org> | 2002-02-21 08:59:45 +0000 |
---|---|---|
committer | Ernst de Haan <znerd@FreeBSD.org> | 2002-02-21 08:59:45 +0000 |
commit | a7d50013bc9b1bf33ab9cf93019b9a3bfc4c2816 (patch) | |
tree | 4d28108ea525dd953a4d422e9c40e763cefc56f2 /www/tomcat41/files | |
parent | change master site (diff) |
Startup script to be installed in ${PREFIX}/etc/rc.d/.
Diffstat (limited to 'www/tomcat41/files')
-rw-r--r-- | www/tomcat41/files/jakarta-tomcat.sh | 24 | ||||
-rw-r--r-- | www/tomcat41/files/startup.sh | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/www/tomcat41/files/jakarta-tomcat.sh b/www/tomcat41/files/jakarta-tomcat.sh new file mode 100644 index 000000000000..d67a00118237 --- /dev/null +++ b/www/tomcat41/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 diff --git a/www/tomcat41/files/startup.sh b/www/tomcat41/files/startup.sh new file mode 100644 index 000000000000..d67a00118237 --- /dev/null +++ b/www/tomcat41/files/startup.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 |