Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 80298 invoked from network); 11 Apr 2003 21:40:35 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Apr 2003 21:40:35 -0000 Received: (qmail 24068 invoked by uid 97); 11 Apr 2003 21:42:34 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 24061 invoked from network); 11 Apr 2003 21:42:34 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Apr 2003 21:42:34 -0000 Received: (qmail 78888 invoked by uid 500); 11 Apr 2003 21:40:22 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 78877 invoked from network); 11 Apr 2003 21:40:22 -0000 Received: from flamingo.mail.pas.earthlink.net (207.217.120.232) by daedalus.apache.org with SMTP; 11 Apr 2003 21:40:22 -0000 Received: from h-69-3-125-249.sfldmidn.covad.net ([69.3.125.249] helo=dhcp-203) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1946Fl-0006wU-00; Fri, 11 Apr 2003 14:40:09 -0700 Content-Type: text/plain; charset="us-ascii" From: dwightHugget Reply-To: jamaican@concentric.net Organization: dmh Enterprise To: "Jeremy Whitlock" , graghupathy@aegonuk.co.uk, John Turner , "Chris Brown" Subject: Re: Can Tomcat run as a Service Date: Fri, 11 Apr 2003 17:40:20 -0400 User-Agent: KMail/1.4.3 Cc: "Tomcat Users List" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304111740.20869.jamaican@concentric.net> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Gang, I posted a message to the groups asking how to run tomcat as a service in= =20 Linux. Thanks to the 4 or so individuals that responded. I got 4 responses which had conceptually the same stuff. My goal all along was to be able to run as many Tomcat instances as I wan= ted=20 separately and cleanly on the same machine. I think I've made 90% progres= s. I=20 have to deploy a web app and test a little more. Here's the solution that satisfied my needs: I installed the rpm version of tomcat so I had a clean base to work from = and a=20 good script to start with. After learning exactly what that install did and where files and scripts = were=20 I made my first duplicate instance. I created /etc/init.d/tomcatca and /etc/init.d/tomcatqa I added runlevel 345 in these since thery weren't there. I created separate /etc/tomcatca and /etc/tomcatqa I made the necessary detail edits to the tomcat4.conf, server.xml, and we= b.xml=20 to suit my needs. I made copies of /usr/bin/dtomcat4 to dtomcat4ca and dtomcat4qa I made the necessary edits Key changes: in cases of common variables like CATALINA_HOME, CATALINA_BASE, etc I changed those all to CATALINA_CA_HOME and CATALINA_QA_HOME respectively There were areas where the tomcat pid file was that I cahnged as well. Yes, it was very close detail script changing but I needed this to have t= rue=20 separate instances. I also changed the sym links of conf, temp, work etc to point to separate= =20 places according to ca and qa. Finally. Does anyone see where I might have overlooked any files ? Does anyone see where I might have missed a file that needs changing ? later --=20 Dwight Hugget http://www.dmhEnterprise.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org