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

2019-04-03 Thread Emmanuel Bourg
Le 29/03/2019 à 16:32, Igor Blanco a écrit :

> 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.

Thank you for reporting this issue Igor. /etc/default/tomcat8 should
probably be sourced from tomcat-start.sh instead of being used with the
EnvironmentFile directive. It looks like that's what upstream suggests [1].

[1] https://github.com/systemd/systemd/issues/4416#issuecomment-255169835



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

2019-03-29 Thread Igor Blanco
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  adduser3.118
ii  debconf [debconf-2.0]  1.5.71
ii  lsb-base   10.2019031300
ii  tomcat8-common 8.5.38-2
ii  ucf3.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 
pn  tomcat8-docs  
pn  tomcat8-examples  
pn  tomcat8-user  

-- 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