[Bug 1354193] [NEW] Variables in /etc/default/tomcat7 overridden in /etc/init.d/tomcat7
Jon Stumpf
1354193 at bugs.launchpad.net
Thu Aug 7 22:50:37 UTC 2014
Public bug reported:
Many variables defined in /etc/default/tomcat7 are overridden in
/etc/init.d/tomcat7. In short, they cannot be set in
/etc/default/tomcat7. These are: TOMCAT7_USER, TOMCAT7_GROUP,
TOMCAT7_SECURITY, JVM_TMP, and JAVA_HOME.
If empty, JVM_TMP was set to "/etc/tomcat7-$NAME-tmp". With
NAME="tomcat7", this was redundant and I fixed it to match what is
documented in /etc/default/tomcat7.
In the (temporary) logic to set JAVA_HOME, there was an error in
enumerating the java-7-openjdk's. The error caused the enumerated list
to only be the last directory discovered. I fixed the error to match
the logic for the java-6-openjdk's.
Lastly, the "auto-generate" message for the policies is hardcoded. I
added logic to list both the logical path and, if different, the
physical path to the policy.d directory.
** Affects: tomcat7 (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "tomcat7.diff"
https://bugs.launchpad.net/bugs/1354193/+attachment/4172311/+files/tomcat7.diff
** Description changed:
- Many variables defined in /etc/default/tomcat7 are overridden
+ Many variables defined in /etc/default/tomcat7 are overridden in
/etc/init.d/tomcat7. In short, they cannot be set in
/etc/default/tomcat7. These are: TOMCAT7_USER, TOMCAT7_GROUP,
TOMCAT7_SECURITY, JVM_TMP, and JAVA_HOME.
If empty, JVM_TMP was set to "/etc/tomcat7-$NAME-tmp". With
NAME="tomcat7", this was redundant and I fixed it to match what is
documented in /etc/default/tomcat7.
In the (temporary) logic to set JAVA_HOME, there was an error in
enumerating the java-7-openjdk's. The error caused the enumerated list
to only be the last directory discovered. I fixed the error to match
the logic for the java-6-openjdk's.
+
+ Lastly, the "auto-generate" message for the policies is hardcoded. I
+ added logic to list both the logical path and, if different, the
+ physical path to the policy.d directory.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat7 in Ubuntu.
https://bugs.launchpad.net/bugs/1354193
Title:
Variables in /etc/default/tomcat7 overridden in /etc/init.d/tomcat7
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1354193/+subscriptions
More information about the Ubuntu-server-bugs
mailing list