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

Bug 593346

Summary: www-servers/tomcat - init script should create CATALINA_TMPDIR on startup
Product: Gentoo Linux Reporter: Jan Henke <gentoo>
Component: Current packagesAssignee: Java team <java>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jan Henke 2016-09-10 07:24:30 UTC
Tomcat 8 uses /var/tmp/<name of tomcat instance> as the default location of CATALINA_TMPDIR. It fails to start if that folder does not exists already.

Since my /tmp and /var/tmp are both tmpfs, it is cleared on reboot. This means the CATALINA_TMPDIR is removed on reboot (as it should). This prevents Tomcat from starting automatically.

But since /var/tmp is world writeable, the startup script could create the CATALINA_TMPDIR itself. Can you modify the default start script, so that it tries to create the CATALINA_TMPDIR before failing?