Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I make changes in /etc/sysconfig/tomcat6, in the init.d script the global values in /etc/tomcat6/tomcat6.conf are set, and then ovridden by anything I set in /etc/sysconfig/tomcat6. However, the init.d script calls /usr/bin/dtomcat as the last step, this script again reads the global file, thus obliterating any changes I made in /etc/sysconfig/tomcat6

I don't want to edit /etc/tomcat6/tomcat6.conf, I'd like to have multiple instances running. Can someone enlighten me? Do most people just edit the global file?

share|improve this question
    
Multiple Tomcat-instances or multiple deployed instances of the same application? If the former - why? –  Nils Oct 27 '11 at 20:51
    
multiple tomcat instances, some of the apps have duplicate context names as well as having a desire to restart one container while leaving the others up. –  thekbb Nov 1 '11 at 18:47
    
That is even one more reason to stick to the tgz solution. With the CentOS solution the installation was pretty bound to one instance. –  Nils Nov 6 '11 at 21:23

1 Answer 1

up vote 0 down vote accepted

Most people propably do the same with tomcat6 as with tomcat5:

  1. Throw away the packages delivered with CentOS
  2. Download tgz from apache-tomcat.
  3. Create directory of your choice
  4. Untar there
  5. configure
  6. run

I tried to get tomcat5 running on CentOS5 and gave up - reverting to 1 through 6 gave me a running tomcat in no time.

share|improve this answer
    
Yeah. that'd work as my issue is largely with the startup scripts provided with the CentOS rpm. However these machines are all in the cloud, it's so much easier to stick with the rpms to have these guys spun up quickly in large numbers. –  thekbb Nov 1 '11 at 19:46
    
You could try to build a relocatable rpm with the tgz. That way you just have to provide one additional parameter and install many instances in many places. As for the startup-scripts - what about the ones provided with Apache-Tomcat6? Are they still as bad as with Tomcat5? –  Nils Nov 6 '11 at 21:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.