Additional instances of tomcat6 - how?
Peter Boy
pboy at barkhof.uni-bremen.de
Fri Mar 5 11:58:23 UTC 2010
Hi,
I followed the instructions in /etc/sysconfig/tomcat6 to create a second
tomcat6 instance:
- created a link in /etc/init.d/tomcat6-dev
- created a file in /etc/sysconfig/tomcat6-dev
- created /usr/share/tomcat6-dev
- created therein symlins conf, work, temp, webapps to resp.
separate dirs
- copied standard conf files to new dir (besides tomcat6.conf)
I edited the configuration files not to interfere regarding port number,
pid file, etc. and defined CATALINA_BASE = /usr/share/tomcat6-dev
Problem: "service tomcat6 {start|stop}" works, "service tomcat6-dev
start" fails.
I would like to share the tomcat binaries and libs, therefore use the
same CATALINA_HOME, but a different CATALINA_BASE.
I'm not so familiar with bash programming, but
inspecting /etc/init.d/tomcat6 I found some fix configuration option (to
my understanding, may be wrong), e.g.
> TOMCAT_LOG="${TOMCAT_LOG:-/var/log/tomcat6/catalina.out}"
where TOMCAT_LOG is not part of any instance specific configuration file
nor does it seem to use $CATALINA_BASE/logs for logging (which I would
expect).
Questions:
- is it possible to share Tomcat binaries and libs between different
instances or do I have to define different CATALINA_HOME as well as
different CATALINA_BASE?
- Does someone know a Howto to create separate instances the Fedora way?
(My googling didn't yield any insights)
Thanks in advance
Peter
More information about the users
mailing list