Date: Tue, 21 Dec 2004 18:20:12 -0600 From: Thomas Duffey <tduffey@homeboyz.org> Cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file Message-ID: <41C8BDBC.4050801@homeboyz.org> In-Reply-To: <20041221234347.GA16825@rcfile.org> References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> <20041221234347.GA16825@rcfile.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Brent,
Brent Verner wrote:
> Thomas, thanks for reminding me of CATALINA_BASE :-)
>
> This might well be the best solution. Keep all user
>configured files away from the port-managed files. Many
>other systems package/install tomcat in this manner, FWIW.
>
> Where could a directory be created to hold more than one
>CATALINA_BASE directory? In that directory could be
>directories with names based on the package's ${ORIGIN}...
>
> ${SITE_BASE}/tomcat4
> ${SITE_BASE}/tomcat41
> ${SITE_BASE}/tomcat5
>
>where SITE_BASE could default to something like
>/usr/local/www-java or /usr/local/www/catalina-base.
>
>
I'm not sure I follow you. Are you trying to declare a default location
for individual "instances" of specific versions of Tomcat?
> The do-install target would check for existence of the
>CATALINA_BASE directory. If not present, the directory
>is created and populated with the necessary files. If
>the catalina.sh were used to start/stop the tomcat, we
>could simply create/supply a setenv.sh file (next to
>catalina.sh) that defined the external CATALINA_BASE if
>not already defined in the environment.
>
>
When I build a Tomcat port, then, would I need to build/install it once
for each instance? Suppose I have three instances, would I need to do:
# CATALINA_BASE=/home/appserver1/tomcat make && make install
# CATALINA_BASE=/home/appserver2/tomcat make && make install
# CATALINA_BASE=/home/appserver3/tomcat make && make install
This seems like more work to me than just understanding how
CATALINA_BASE works, configuring your Tomcat instances however they best
suit your needs and then assuming the FreeBSD port will always just
install the latest and greatest to /usr/local/jakarta-tomcatXX and leave
your instances files alone. Although I typically use daemontools to
start/stop my Tomcat instances, I would be interested in a more
intelligent startup/shutdown script that references /etc/rc.conf to
determine whether or not Tomcat should even be started at boot (e.g.
tomcat41_enable="YES").
Whatever you come up with, please keep things simple for those of us who
expect the port to install a standard Tomcat setup, including the latest
default configuration files.
Best Regards,
Tom Duffey
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41C8BDBC.4050801>
