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

Bug 310029

Summary: >=www-servers/tomcat-6.0.20: init script creates log file (Catalina.out) with bad ownership
Product: Gentoo Linux Reporter: Tomas Kadlec <tomas>
Component: New packagesAssignee: Mike Weissman <mike>
Status: RESOLVED FIXED    
Severity: normal CC: java, xarthisius
Priority: High Keywords: Inclusion
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Simple patch to change buggy line of the init script.
Simple patch to change buggy line of the init script.

Description Tomas Kadlec 2010-03-18 07:19:11 UTC
Init script comming with www-servers/tomcat-6.0.20 ebuild creates log file Catalina.out with bad ownership in case you want to run tomcat server under different user/group than default (tomcat/tomcat). That's a common case when you are running multiple instances of tomcat.

Problem is line 40 of init script where are user and group hardcoded instead of use of variables.

Solution is pretty simple. I'll try to include a patch. Can someone add it to the portage tree to the aforementioned ebuild. Thanks!

Reproducible: Always

Steps to Reproduce:
1. emerge =www-servers/tomcat-6.0.20


Actual Results:  
Bad init script was installed. It has hardcoded tomcat user/group.

Expected Results:  
Tomcat user/group shoudln't be hardcoded in the init script.
Comment 1 Tomas Kadlec 2010-03-18 07:20:17 UTC
Created attachment 224069 [details, diff]
Simple patch to change buggy line of the init script.
Comment 2 Tomas Kadlec 2010-03-18 08:19:25 UTC
Created attachment 224075 [details, diff]
Simple patch to change buggy line of the init script.

Second version! In the first one is a tiny mistake.
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-06-06 12:41:23 UTC
Should be fixed in 6.0.26-r1