Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593346 - www-servers/tomcat - init script should create CATALINA_TMPDIR on startup
Summary: www-servers/tomcat - init script should create CATALINA_TMPDIR on startup
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
Depends on:
Reported: 2016-09-10 07:24 UTC by Jan Henke
Modified: 2016-09-17 13:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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?