[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jpackage-discuss
Subject:    Re: [JPackage-discuss] running multiple instances of tomcat5 on the
From:       Fernando Nasser <fnasser () redhat ! com>
Date:       2006-09-18 16:42:08
Message-ID: 450ECC60.6080602 () redhat ! com
[Download RAW message or body]

Yes, that is a nice feature for Linux servers.  It allows one to have 
the system start with services like tomcat-production, tomcat-test, etc.

Permaine Cheung wrote:
> Hi,
> 
> I'm trying to use the SysV service script to start multiple instances, 
> it seems that the original script has hard coded the config file in it, 
> and if the user has already started a service with that, he would have 
> to update the same config file to start a second instance 
> simultaneously, but both services would share the lock file, and the 
> second service won't be able to start. I'm only trying to add that 
> capability to the current SysV service script.
> 
> Cheers,
> Permaine
> 
> Davide Bolcioni wrote:
>> Permaine Cheung wrote:
>>
>>   
>>> I was trying to start multiple instances of tomcat on the same machines 
>>> simultaneously, I don't see an easy way to do it with the current init 
>>> script, so I tried to add that capability to it.
>>> With this patch, a user can start another tomcat service by creating a 
>>> second service by the following:
>>> 1. create a symlink for the new service in /etc/init.d/ to 
>>> /etc/init.d/tomcat5
>>> 2. create a sysconfig file for the new service in 
>>> /etc/sysconfig/<service-name>, which name has to match with the symlink 
>>> created in the above step, edit this new file to update the values for 
>>> CATALINA_HOME, JASPER_HOME,, CATALINA_TMPDIR, JAVA_ENDORSED_DIRS, 
>>> CATALINA_PID and CONNECTOR_PORT (a new variable). If this file does not 
>>> exist, the original /etc/tomcat/tomcat5.conf will be used.
>>> 3. create a new logrotate file for the new service by copying the one 
>>> from tomcat5 and updating the log file location, which should be 
>>> /var/log/<service-name>.
>>> 4. start or stop the service by: service <service-name> start/stop
>>>     
>> I might add that Tomcat 4 and 5 already have such capability, to some
>> extent, and it is tied to the value of CATALINA_BASE: see their
>> catalina.sh script for ideas.
>>
>> Thank you for your consideration,
>> Davide Bolcioni
>>   
> 
> _______________________________________________
> JPackage-discuss mailing list
> JPackage-discuss@zarb.org
> https://www.zarb.org/mailman/listinfo/jpackage-discuss
> 
_______________________________________________
JPackage-discuss mailing list
JPackage-discuss@zarb.org
https://www.zarb.org/mailman/listinfo/jpackage-discuss
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic