Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407979 - www-servers/tomcat:6 fails to run when using /run (with tmpfs)
Summary: www-servers/tomcat:6 fails to run when using /run (with tmpfs)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 428002
Blocks:
  Show dependency tree
 
Reported: 2012-03-12 23:57 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-12-07 16:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2012-03-12 23:57:00 UTC
The newer versions of OpenRC will use /run as tmpfs is present, to start from scratch at every boot; Tomcat though expects /var/run/tomcat-6 to be present and owned by the tomcat user when starting.

The solution is to add a checkpath (man runscript) call to re-create the directory in the init's start function.

Thanks,
Diego
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2012-07-25 09:33:21 UTC
tomcat apparently stores "session data" there so any *run* directory should be avoided by default.

Fixed in tomcat-6.0.35-r1.
Comment 2 Ralph Sennhauser (RETIRED) gentoo-dev 2012-12-07 16:52:34 UTC
Now in stable everywhere. Thanks for the report.