silpion / ansible-tomcat

Manage installation of Tomcat
Apache License 2.0
64 stars 57 forks source link

CATALINA_OPTS not supported in systemd #30

Open apenney opened 7 years ago

apenney commented 7 years ago

Hey guys,

I'm sort of shocked to realize that CATALINA_OPTS is completely broken in systemd with this module. It's calling java direct so there's nothing to actually -add- CATALINA_OPTS in.

If I add $CATALINA_OPTS before the classpath in start/stop in systemd it seems to work. I don't want to submit this as a PR as I'm not confident this is the right approach. Without this all the catalina_opts stuff is completely ignored, however.