Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310029 - >=www-servers/tomcat-6.0.20: init script creates log file (Catalina.out) with bad ownership
Summary: >=www-servers/tomcat-6.0.20: init script creates log file (Catalina.out) with...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mike Weissman
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2010-03-18 07:19 UTC by Tomas Kadlec
Modified: 2010-06-06 12:41 UTC (History)
2 users (show)

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


Attachments
Simple patch to change buggy line of the init script. (tomcat-6.0.20-init.patch,393 bytes, patch)
2010-03-18 07:20 UTC, Tomas Kadlec
Details | Diff
Simple patch to change buggy line of the init script. (tomcat-6.0.20-init.patch,394 bytes, patch)
2010-03-18 08:19 UTC, Tomas Kadlec
Details | Diff

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