summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/apache-tomcat/apache-tomcat.SlackBuild4
-rw-r--r--system/apache-tomcat/apache-tomcat.info6
-rw-r--r--system/apache-tomcat/rc.tomcat10
-rw-r--r--system/apache-tomcat/tomcat-java.conf8
4 files changed, 15 insertions, 13 deletions
diff --git a/system/apache-tomcat/apache-tomcat.SlackBuild b/system/apache-tomcat/apache-tomcat.SlackBuild
index 9c1545de36..7e44293ebc 100644
--- a/system/apache-tomcat/apache-tomcat.SlackBuild
+++ b/system/apache-tomcat/apache-tomcat.SlackBuild
@@ -24,9 +24,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=apache-tomcat
-VERSION=7.0.47
+VERSION=${VERSION:-7.0.56}
ARCH=noarch
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
diff --git a/system/apache-tomcat/apache-tomcat.info b/system/apache-tomcat/apache-tomcat.info
index c51d63a6ac..68a6541775 100644
--- a/system/apache-tomcat/apache-tomcat.info
+++ b/system/apache-tomcat/apache-tomcat.info
@@ -1,8 +1,8 @@
PRGNAM="apache-tomcat"
-VERSION="7.0.47"
+VERSION="7.0.56"
HOMEPAGE="http://tomcat.apache.org/"
-DOWNLOAD="http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.47/bin/apache-tomcat-7.0.47.tar.gz"
-MD5SUM="efbae77efad579b655ae175754cad3df"
+DOWNLOAD="http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.56/bin/apache-tomcat-7.0.56.tar.gz"
+MD5SUM="2887d0e3ca18bdca63004a0388c99775"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jdk commons-daemon"
diff --git a/system/apache-tomcat/rc.tomcat b/system/apache-tomcat/rc.tomcat
index 478528d1af..75c083b679 100644
--- a/system/apache-tomcat/rc.tomcat
+++ b/system/apache-tomcat/rc.tomcat
@@ -26,9 +26,11 @@ done
USER="tomcat"
-TOMCAT_CMD="/usr/bin/jsvc -user $USER -cp $CLASSPATH \
+JSVC="/usr/bin/jsvc"
+TOMCAT_CMD="-user $USER -cp $CLASSPATH \
-pidfile $PIDFILE -outfile $LOGFILE -errfile $LOGFILE \
-Xms$MEMALLOC_MIN -Xmx$MEMALLOC_MAX -Xss$STACK -XX:MaxPermSize=$MAXPERMSIZE \
+ -Djava.io.tmpdir="$CATALINA_TMPDIR" \
-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 \
@@ -41,7 +43,7 @@ tomcat_start() {
else
unset DISPLAY
cd /var/lib/tomcat
- $TOMCAT_CMD
+ $JSVC $TOMCAT_CMD
echo "done!"
fi
}
@@ -49,9 +51,9 @@ tomcat_start() {
tomcat_stop() {
echo -n "Stopping Apache Tomcat ... "
if [ -e "$PIDFILE" ]; then
- kill -TERM $(cat $PIDFILE) > /dev/null 2>&1
+ cd /var/lib/tomcat
+ $JSVC -stop $TOMCAT_CMD
echo "done!"
- rm -f "$PIDFILE"
else
echo "not running!"
fi
diff --git a/system/apache-tomcat/tomcat-java.conf b/system/apache-tomcat/tomcat-java.conf
index 053db27e99..71a927242f 100644
--- a/system/apache-tomcat/tomcat-java.conf
+++ b/system/apache-tomcat/tomcat-java.conf
@@ -2,15 +2,15 @@
# used by apache tomcat. It does not affect any other java
# applications
-# Initial size of memory allocation pool
+# Initial heap memory size
MEMALLOC_MIN="512m"
-# Maximum size of memory allocation pool
+# Maximum heap memory size
MEMALLOC_MAX="1024m"
# Thread stack size
STACK="256k"
-# Maximum amount of heap used for permanent generation
-MAXPERMSIZE="512m"
+# Permanent generation memory size
+MAXPERMSIZE="128m"