Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109079 - Tomcat ebuild should create a tomcat user with an actual home directory
Summary: Tomcat ebuild should create a tomcat user with an actual home directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 19:00 UTC by Ryan
Modified: 2005-11-14 12:20 UTC (History)
1 user (show)

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 Ryan 2005-10-12 19:00:31 UTC
The tomcat ebuild creates a tomcat user with the home directory set 
to /dev/null. This creates problems with applications like ActiveBPEL because 
they use the home directory of the tomcat user as the initial path to their 
log files. Hence, I see errors of the form cannot  
 
java.io.FileNotFoundException: /dev/null/AeBpelEngine/deployment-logs/aeDeployment.log 
(Not a directory) 
 
The home directory for the tomcat user should be set to something 
like /opt/tomcat5 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2005-10-17 10:58:34 UTC
Tomcat 5.0.28 does not install to /opt/tomcat5 any more. Also your suggestion
does not work with upgrades because the home directory would be dependent on the
version. The goal of the new setup is to be able to run different Tomcat major
versions at the same time. Maybe we could modify ${HOME} in the init script, but
I need to check how allowed that kind of tricks are. 
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-11-14 12:20:18 UTC
You can now use emerge --config to change the home directory of the tomcat user
and at the end of the emerge the ebuild says you can run emerge --config to
change the home directory. If you have a better solution then reopen this bug. I
don't want to force anything on users that have already manually changed the
home directory.