Bug#926319: tomcat9: Variable expansion not supported in /etc/default/tomcat9

Christian Hänsel c.haensel at reliatec.de
Thu May 23 17:58:26 BST 2019


Hi everybody

I did the following changes to use /etc/default/tomcat9 to enable
debugging for tomcat9.


1. modify tomcat-start.sh to load /etc/default/tomcat9

diff -c tomcat-start.sh tomcat-start.modified.sh

*** tomcat-start.sh
--- tomcat-start.modified.sh
***************
*** 7,12 ****
--- 7,13 ----

  # Find the Java runtime and set JAVA_HOME
  . /usr/libexec/tomcat9/tomcat-locate-java.sh
+ . /etc/default/tomcat9

  # Set the JSP compiler if configured in the /etc/default/tomcat9 file
  [ -n "$JSP_COMPILER" ] && JAVA_OPTS="$JAVA_OPTS
-Dbuild.compiler=\"$JSP_COMPILER\""


2. removed environmentFiles from
/etc/systemd/system/multi-user.target.wants/tomcat9.service

diff -c  tomcat9.modified.service
*** tomcat9.service
--- tomcat9.modified.service
***************
*** 13,19 ****
  Environment="CATALINA_HOME=/usr/share/tomcat9"
  Environment="CATALINA_BASE=/var/lib/tomcat9"
  Environment="CATALINA_TMPDIR=/tmp"
- EnvironmentFile=-/etc/default/tomcat9

  # Lifecycle
  Type=simple
--- 13,18 ----



Regards,
Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20190523/0a38f180/attachment.sig>


More information about the pkg-java-maintainers mailing list