mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
system/apache-tomcat: Updated for version 7.0.47.
Updated init script for commons-daemon changes Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
bd786958d8
commit
a8ead33a5f
3 changed files with 21 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for apache-tomcat
|
||||
|
||||
# Copyright 2008-2011 Heinz Wiesinger, Amsterdam, The Netherlands
|
||||
# Copyright 2008-2013 Heinz Wiesinger, Amsterdam, The Netherlands
|
||||
# Copyright 2010 Vincent Batts, vbatts@hashbangbash.com, http://hashbangbash.com/
|
||||
# All rights reserved.
|
||||
#
|
||||
|
@ -24,9 +24,9 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=apache-tomcat
|
||||
VERSION=7.0.22
|
||||
VERSION=7.0.47
|
||||
ARCH=noarch
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="apache-tomcat"
|
||||
VERSION="7.0.22"
|
||||
VERSION="7.0.47"
|
||||
HOMEPAGE="http://tomcat.apache.org/"
|
||||
DOWNLOAD="http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.22/bin/apache-tomcat-7.0.22.tar.gz"
|
||||
MD5SUM="e649eb42e18905665846499ff39e72be"
|
||||
DOWNLOAD="http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.47/bin/apache-tomcat-7.0.47.tar.gz"
|
||||
MD5SUM="efbae77efad579b655ae175754cad3df"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="jdk commons-daemon"
|
||||
|
|
|
@ -1,18 +1,26 @@
|
|||
#!/bin/sh
|
||||
# Start/stop/restart apache-tomcat.
|
||||
# $Id: rc.apache-tomcat,v 1.1.4 2011/04/01
|
||||
# $Id: rc.apache-tomcat,v 1.2.0 2013/11/30
|
||||
# Authors: Heinz Wiesinger <pprkut@liwjatan.at>, Vincent Batts <vbatts@hashbangbash.com>
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Load tomcat specific java vm options
|
||||
. /etc/tomcat/tomcat-java.conf
|
||||
|
||||
# Load environment variables
|
||||
. /etc/profile.d/apache-tomcat.sh
|
||||
if [ -e "/etc/profile.d/openjdk.sh" ]; then
|
||||
. /etc/profile.d/openjdk.sh
|
||||
else
|
||||
. /etc/profile.d/jdk.sh
|
||||
fi
|
||||
|
||||
PIDFILE="/var/spool/tomcat/tomcat.pid"
|
||||
LOGFILE="/var/log/tomcat/tomcat.log"
|
||||
|
||||
CLASSPATH="/usr/share/tomcat/bin/bootstrap.jar:/usr/share/java/commons-daemon.jar"
|
||||
for i in /usr/share/tomcat/lib/*.jar; do
|
||||
CLASSPATH=$CLASSPATH:$i
|
||||
CLASSPATH="$CATALINA_BASE/bin/bootstrap.jar:/usr/share/java/commons-daemon.jar"
|
||||
for i in $CATALINA_LIBDIR/*.jar; do
|
||||
CLASSPATH=$CLASSPATH:$i
|
||||
done
|
||||
|
||||
USER="tomcat"
|
||||
|
@ -20,6 +28,9 @@ USER="tomcat"
|
|||
TOMCAT_CMD="/usr/bin/jsvc -user $USER -cp $CLASSPATH \
|
||||
-pidfile $PIDFILE -outfile $LOGFILE -errfile $LOGFILE \
|
||||
-Xms$MEMALLOC_MIN -Xmx$MEMALLOC_MAX -Xss$STACK -XX:MaxPermSize=$MAXPERMSIZE \
|
||||
-Dcatalina.home=$CATALINA_HOME -Dcatalina.base=$CATALINA_BASE \
|
||||
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
|
||||
-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \
|
||||
-Djava.awt.headless=true org.apache.catalina.startup.Bootstrap"
|
||||
|
||||
tomcat_start() {
|
||||
|
|
Loading…
Reference in a new issue