Bug#925969: tomcat8: Variable expansion not supported in /etc/default/tomcat8

Igor Blanco iblanco at binovo.es
Fri Mar 29 15:32:21 GMT 2019


Package: tomcat8
Version: 8.5.38-2
Severity: normal

Dear Maintainer,

   * What led up to the situation?
Installing tomcat8 and trying to enable debug

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I edited /etc/default/tomcat8 and uncommented the line that add debug options to JAVA_OPTS

   * What was the outcome of this action?

After the change tomcat8 service can not be started
   * What outcome did you expect instead?
I expected tomcat8 to been able to start.


The issue seems to be related to the usage of ${JAVA_OPTS} as a variable expansion. Systemd does not supporte variable expansion in "Environment" attributes
and it seems like it doesn't either when environmentFiles are loaded.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tomcat8 depends on:
ii  adduser                3.118
ii  debconf [debconf-2.0]  1.5.71
ii  lsb-base               10.2019031300
ii  tomcat8-common         8.5.38-2
ii  ucf                    3.0038+nmu1

Versions of packages tomcat8 recommends:
ii  authbind       2.1.2
ii  libtcnative-1  1.2.21-1

Versions of packages tomcat8 suggests:
pn  tomcat8-admin     <none>
pn  tomcat8-docs      <none>
pn  tomcat8-examples  <none>
pn  tomcat8-user      <none>

-- Configuration Files:
/etc/tomcat8/catalina.properties changed [not included]
/etc/tomcat8/context.xml changed [not included]
/etc/tomcat8/server.xml changed [not included]

-- debconf information excluded



More information about the pkg-java-maintainers mailing list