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

Bug 33861

Summary: JBoss startup fails: chown jboss.jboss problem in script
Product: Gentoo Linux Reporter: Dan A. Dickey <dan.dickey>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED DUPLICATE    
Severity: critical CC: wolfwood
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dan A. Dickey 2003-11-19 14:28:01 UTC
For the jboss-3.2.1-r1 ebuild, the patch that creates a tmp directory and then 
does a chown fails on the chown.  The problem is that the script is doing a 
'chown jboss.jboss .../tmp' and this should be 'chown jboss:jboss .../tmp' 
instead. 
 

Reproducible: Always
Steps to Reproduce:
1.  emerge jboss-3.1.1-r1 in a fresh state 
2.  try to start the default jboss:   /etc/init.d/jboss start 
3. 
Actual Results:  
The tmp directory gets created, but is left owned by root and group root. 
 

Expected Results:  
The tmp directory should be owned by jboss and group jboss. 
 

It looks like this is happening on my system after I emerged 
coreutils-5.0.91-r1.  Indeed, I looked at the code for it 
and see what the problem is.  The chown in the new coreutils 
is not allowing '.' as a separator anymore.
Comment 1 Dan A. Dickey 2003-11-19 14:31:21 UTC
Someone needs to change the '.' in the init.d/jboss script to a ':'.
I'd do this, but I'm not exactly sure how to.  And I probably don't
have permissions.  :)
Comment 2 Dominik Stadler (RETIRED) gentoo-dev 2003-11-22 03:34:37 UTC
This seems to be kind of a duplicate of Bug 31926, Bug 30596 and Bug 23116. I think we should duplicate it to Bug 23116, as this is where the required changes are tracked for all packages now. Can somebody with enough Bugzilla-Power duplicate this Bug, please?
Comment 3 wolfwood 2003-12-11 17:46:38 UTC
As Dan said, in "files/3.2.1/init.d/jboss", the usage of chown should be corrected to use a coreutils compatible format.  The ':' format works with fileutils and coreutils, so there is really no reason not to do this.
Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2003-12-17 11:39:55 UTC

*** This bug has been marked as a duplicate of 35127 ***