Bug#505461: tomcat5.5: Init script fails when too many files in $CATALINA_BASE/temp
Julien De Bona
jdb at ionicsoft.com
Wed Nov 12 16:26:09 UTC 2008
Package: tomcat5.5
Version: 5.5.20-2etch3
Severity: normal
When there are too many files in $CATALINA_BASE/temp, the "rm *" command
at line 131 in /etc/init.d/tomcat5.5 expands to a too long command and fails.
Using find instead of rm * can solve this. Suggested patch for
/etc/init.d/tomcat5.5 is:
131,132c131,132
< rm -rf "$CATALINA_BASE"/temp/* \
< "$CATALINA_BASE/logs/catalina.out"
---
> find "$CATALINA_BASE/temp" -mindepth 1 -exec rm -rf {} +
> rm "$CATALINA_BASE/logs/catalina.out"
This problem can make Tomcat not restart (or start if the server has
been rebooted), and has been solved in Lenny, but not yet in Etch.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Versions of packages tomcat5.5 depends on:
ii adduser 3.102 Add and remove users and groups
ii apache2-utils 2.2.3-4+etch6 utility programs for webservers
ii apache2.2-common 2.2.3-4+etch6 Next generation, scalable, extenda
ii ecj-bootstrap 3.2.1-3 bootstrap version of the Eclipse J
ii gij-4.1 [java2-runtime] 4.1.1-20 The GNU Java bytecode interpreter
ii libtomcat5.5-java 5.5.20-2etch3 Java Servlet engine -- core librar
ii sun-java5-jre [java2-run 1.5.0-14-1etch1 Sun Java(TM) Runtime Environment (
tomcat5.5 recommends no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list