Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 148387

Summary: tomcat 5.5 CATALINA_TMPDIR not set appropriately
Product: Gentoo Linux Reporter: Chris Lear <chris.lear>
Component: New packagesAssignee: William L. Thomson Jr. (RETIRED) <wltjr>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to /etc/init.d/tomcat-5.5

Description Chris Lear 2006-09-20 08:53:06 UTC
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 Chris Lear 2006-09-20 08:55:59 UTC
Created attachment 97549 [details, diff]
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 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-09-20 10:55:22 UTC
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.