Bug 446598

Summary: Tomcat6: tomcat6.conf overwrites sysconfig/tomcat6 values
Product: [openSUSE] openSUSE 11.0 Reporter: Robert Munteanu <rombert>
Component: JavaAssignee: Michal Vyskocil <mvyskocil>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P4 - Low    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.0   
Whiteboard: maint:released:11.0:25240 maint:released:11.1:25240 maint:released:sle11:25239
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 485933    

Description Robert Munteanu 2008-11-19 14:40:09 UTC
/etc/tomcat6/tomcat6.conf states:

# System-wide configuration file for tomcat6 services
# This will be sourced by tomcat6 and any secondary service
# Values will be overridden by service-specific configuration
# files in /etc/sysconfig

but in /usr/bin/dtomcat6 /etc/tomcat6/tomcat6.conf is read again, which overwrites the values read in /etc/init.d/tomcat6 ( which btw are done in the proper order: tomcat6.conf and then sysconfig/tomcat6 ).

This is confusing and unfortunately contradicts the documentation.
Comment 1 Michal Vyskocil 2008-11-24 13:06:24 UTC
You're right. Fixed in Factory, in 11.0 this will be fixed later. Reassigning to me for better maintenance.
Comment 2 Michal Vyskocil 2009-03-17 09:32:35 UTC
The sysconfig adds a mess to tomcat6 configuration and jpackage.org implementation of it is buggy. The /etc/sysconfig/tomcat6 will be deprecated and merged by /etc/tomcat6/tomcat6.conf, so tomcat6 will have only one configuration point in SUSE.

Details in bug#471639
Comment 3 Michal Vyskocil 2009-06-08 12:02:52 UTC
For 11.0 and 11.1 I'll just change the comment in tomcat6.conf - the big change as a sysconfig removal is not a good idea in released product:

# System-wide configuration file for tomcat6 services
# This will be sourced by (d)tomcat6 and any secondary service
#
# The /etc/init.d/tomcat6 als read values from /etc/sysconfig,
# so values should be overridden by this configuration
Comment 4 Michal Vyskocil 2009-06-10 14:58:08 UTC
This change will be delivered in 11.0, 11.1 and sle11 with upcomming security update of tomcat.
Comment 5 Swamp Workflow Management 2009-06-10 16:32:54 UTC
The SWAMPID for this issue is 25234.
Please submit the patch and patchinfo file using this ID.
(https://swamp.suse.de/webswamp/wf/25234)
Comment 6 Swamp Workflow Management 2009-06-30 13:09:36 UTC
Update released for: tomcat6, tomcat6-admin-webapps, tomcat6-docs-webapp, tomcat6-javadoc, tomcat6-jsp-2_1-api, tomcat6-lib, tomcat6-servlet-2_5-api, tomcat6-webapps
Products:
openSUSE 11.0 (i386)
openSUSE 11.1 (i586)
Comment 7 Swamp Workflow Management 2009-06-30 22:08:55 UTC
Update released for: tomcat6, tomcat6-admin-webapps, tomcat6-docs-webapp, tomcat6-javadoc, tomcat6-jsp-2_1-api, tomcat6-lib, tomcat6-servlet-2_5-api, tomcat6-webapps
Products:
SLE-SDK 11 (i386, ia64, ppc64, s390x, x86_64)