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
signature.asc
Description: OpenPGP digital signature