[java-sig-commits] [Bug 842346] Properly migrate tomcat to systemd

bugzilla at redhat.com bugzilla at redhat.com
Tue Sep 10 21:01:11 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=842346



--- Comment #15 from Paul P Komkoff Jr <i at stingr.net> ---
Do you have a specific need to put tomcat in /var/lib/pki/tomcat35? Because how
it's used by default is - if you don't create any file in sysconfig and just
start an instance tomcat at name is it'll set catalina_base to
/var/lib/tomcats/name.
However if you override you can just CATALINA_BASE=/var/lib/pki/tomcat35.
Now, configs. As we run separate instances and they need separate configs, you
need conf directory and in it server.xml and some other configs, look at
/usr/libexec/tomcat/{preamble,server} to see how it loads them from /etc/tomcat
vs. CATALINA_BASE/conf.

Ah, you also need to create conf,logs,webapps,work in your instance
CATALINA_BASE

I understand this is poorly documented, but I guess we can fix it together; I
was trying to solve an immediate problem of running this thing and didn't care
that much about documentation.
I guess we can add some tools like tomcat-create-instance that will do all the
directory creation/file copying and also make it work if you just start a named
service - to create missing directories.

Johann: I've implemented your proposed changes. So tomcat is not a forking
service - it's a simple service now. We still need to have ExecStop because
we're stopping it properly, by telling tomcat to shutdown instead of just
killing it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=DszD7WeoIn&a=cc_unsubscribe


More information about the java-sig-commits mailing list