Hello While "/usr/libexec/tomcat9/tomcat-start.sh" sources "/etc/default/tomcat9" the variable is not available from "catalina.sh".
"/usr/libexec/tomcat9/tomcat-start.sh" specifically exports JAVA_OPTS which is available from "catalina.sh" Which is the best place to configure these things? - /etc/default/tomcat9 - /usr/lib/systemd/system/tomcat9.service - $CATALINA_BASE/bin/setenv.sh (as suggested by catalina.sh) For my application i also need to add additional ReadWritePaths in "/lib/systemd/system/tomcat9.service" For me it makes sense to ignore "/etc/default/tomcat9" because other application specific configurations has to be done in the tomcat9.service anyway? Why not do them all here then? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1880694 Title: The tomcat9.service doesn't use JAVA_HOME defined in /etc/default/tomcat9 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat9/+bug/1880694/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs