Bug 148387 - tomcat 5.5 CATALINA_TMPDIR not set appropriately
Bug#: 148387 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: wltjr@gentoo.org Reported By: chris.lear@laculine.com
Component: Ebuilds
URL: 
Summary: tomcat 5.5 CATALINA_TMPDIR not set appropriately
Keywords:  
Status Whiteboard: 
Opened: 2006-09-20 08:53 0000
Description:   Opened: 2006-09-20 08:53 0000
In /etc/conf.d/tomcat-5.5, it says this:

# (Optional) Directory path location of temporary directory the JVM should
# use (java.io.tmpdir).  Defaults to $CATALINA_BASE/temp.
CATALINA_TMPDIR="/var/tmp/tomcat-5.5/"

But, as far as I can see, CATALINA_TMPDIR is never set if this "optional" line
is removed.

I'll upload a patch to /etc/init.d/tomcat-5.5 that I think fixes the problem
(code taken from tomcat's catalina.sh)

------- Comment #1 From Chris Lear 2006-09-20 08:55:59 0000 -------
Created an attachment (id=97549) [details]
Patch to /etc/init.d/tomcat-5.5

Sets CATALINA_TMPDIR if not set, in line with information in
/etc/conf.d/tomcat-5.5 (and as per upstream catalina.sh)

------- Comment #2 From William L. Thomson Jr. (RETIRED) 2006-09-20 10:55:22 0000 -------
Ok sorry about that must have missed that and the other when making the init
script some time back. Interesting no one has caught those till now. Although
we have had some other issues with the init script and logging.

Thanks for catching that and for the patch. I have made the changes in the init
script and committed to tree. Closing bug.