https://bugzilla.novell.com/show_bug.cgi?id=768772 https://bugzilla.novell.com/show_bug.cgi?id=768772#c0 Summary: Multiple bugs in tomcat init script Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: archie@dellroad.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0 The tomcat init script in /etc/init.d/tomcat6 has multiple bugs. Probably simplest to show you the patch that fixes them: --- /etc/init.d/tomcat6 2012-02-15 20:45:21.000000000 -0600 +++ tomcat6 2012-06-25 17:02:52.000000000 -0500 @@ -27,7 +27,7 @@ ### END INIT INFO # set a minimalist PATH -PATH="/bin:/sbin" +PATH="/bin:/sbin:/usr/bin:/usr/sbin" # Source LSB function library. if [ -r /lib/lsb/init-functions ]; then @@ -312,10 +312,10 @@ if [ "${CLEAR_WORK}" = "true" ]; then echo -n "Cleaning work directory: " #rm -rf ${CATALINA_HOME}/work/* - find ${CATALINA_HOME}/work/ -maxdepth 1 -type 'd' \! -name 'Catalina' \! -name 'temp' -print0 | xargs -0 rm -rf - find ${CATALINA_HOME}/work/Catalina/ ${CATALINA_HOME}/work/temp/ -print0 | xargs -0 rm -rf + #find ${CATALINA_HOME}/work/ -maxdepth 1 -type 'd' \! -name 'Catalina' \! -name 'temp' -print0 | xargs -0 rm -rf + find ${CATALINA_HOME}/work/Catalina/ ${CATALINA_HOME}/work/temp/ -mindepth 2 -type d | xargs -0 rm -rf if [ "$?" -eq "0" ]; then - echo_success + log_success_msg echo -n -e "\n" fi fi @@ -356,7 +356,7 @@ ## do this on signal 1 (SIGHUP). ## If it does not support it, restart. - echo -n "Reload service Tomcat $($CATALINA_BASE)" + echo -n "Reload service Tomcat ($CATALINA_BASE)" ## if it supports it: #killproc -HUP $TOMCAT_BIN #touch /var/run/FOO.pid The only non-trivial fix in this patch is in how we do the cleanup when CLEAR_WORK is set. Email me with any questions. Reproducible: Always Steps to Reproduce: 1. Install tomcat. 2. Notice that /etc/init.d/tomcat has bugs. 3. In particular, CLEAR_WORK="true" is broken -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.