From ab5b37c4f849a1a67193c2363f5e9953a94b0b22 Mon Sep 17 00:00:00 2001 From: znerd Date: Thu, 21 Feb 2002 08:59:45 +0000 Subject: Startup script to be installed in ${PREFIX}/etc/rc.d/. --- www/jakarta-tomcat/files/jakarta-tomcat.sh | 24 ++++++++++++++++++++++++ www/jakarta-tomcat3/files/jakarta-tomcat.sh | 24 ++++++++++++++++++++++++ www/jakarta-tomcat4/files/jakarta-tomcat.sh | 24 ++++++++++++++++++++++++ www/jakarta-tomcat4/files/startup.sh | 24 ++++++++++++++++++++++++ www/jakarta-tomcat41/files/jakarta-tomcat.sh | 24 ++++++++++++++++++++++++ www/jakarta-tomcat41/files/startup.sh | 24 ++++++++++++++++++++++++ www/tomcat41/files/jakarta-tomcat.sh | 24 ++++++++++++++++++++++++ www/tomcat41/files/startup.sh | 24 ++++++++++++++++++++++++ 8 files changed, 192 insertions(+) create mode 100644 www/jakarta-tomcat/files/jakarta-tomcat.sh create mode 100644 www/jakarta-tomcat3/files/jakarta-tomcat.sh create mode 100644 www/jakarta-tomcat4/files/jakarta-tomcat.sh create mode 100644 www/jakarta-tomcat4/files/startup.sh create mode 100644 www/jakarta-tomcat41/files/jakarta-tomcat.sh create mode 100644 www/jakarta-tomcat41/files/startup.sh create mode 100644 www/tomcat41/files/jakarta-tomcat.sh create mode 100644 www/tomcat41/files/startup.sh (limited to 'www') diff --git a/www/jakarta-tomcat/files/jakarta-tomcat.sh b/www/jakarta-tomcat/files/jakarta-tomcat.sh new file mode 100644 index 00000000000..d67a0011823 --- /dev/null +++ b/www/jakarta-tomcat/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/jakarta-tomcat3/files/jakarta-tomcat.sh b/www/jakarta-tomcat3/files/jakarta-tomcat.sh new file mode 100644 index 00000000000..d67a0011823 --- /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 diff --git a/www/jakarta-tomcat4/files/jakarta-tomcat.sh b/www/jakarta-tomcat4/files/jakarta-tomcat.sh new file mode 100644 index 00000000000..d67a0011823 --- /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 diff --git a/www/jakarta-tomcat4/files/startup.sh b/www/jakarta-tomcat4/files/startup.sh new file mode 100644 index 00000000000..d67a0011823 --- /dev/null +++ b/www/jakarta-tomcat4/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 diff --git a/www/jakarta-tomcat41/files/jakarta-tomcat.sh b/www/jakarta-tomcat41/files/jakarta-tomcat.sh new file mode 100644 index 00000000000..d67a0011823 --- /dev/null +++ b/www/jakarta-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/jakarta-tomcat41/files/startup.sh b/www/jakarta-tomcat41/files/startup.sh new file mode 100644 index 00000000000..d67a0011823 --- /dev/null +++ b/www/jakarta-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 diff --git a/www/tomcat41/files/jakarta-tomcat.sh b/www/tomcat41/files/jakarta-tomcat.sh new file mode 100644 index 00000000000..d67a0011823 --- /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 00000000000..d67a0011823 --- /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 -- cgit