Peter Tribble wrote:
> On Fri, Oct 16, 2009 at 2:31 PM, Petr Sumbera <Petr.Sumbera at sun.com> wrote:
>>>> The original idea was to deliver /var/run/tomcat6 directory via
>>>> package so that tomcat could write into it. It was wrong..
>>>>
>>>> As tomcat6 is started with 'webservd' credential it's not able to
>>>> write into /var/run. Therefore I'm proposing to change pid file
>>>> location to:
>>>>
>>>> /var/tomcat6/logs/pid        Committed    PID file
> 
> What if there are multiple instances of tomcat running? Don't you
> need per-instance locations?
> 
> (On my systems, the pid file ends up in $CATALINA_BASE/logs,
> which seems the obvious place to put it. That's the same as above
> if CATALINA_BASE is /var/tomcat6, but allows for additional instances.)

pid file will be created only when it's started via SMF. Tomcat started 
via SMF doesn't allow multiple instances as CATALINA_BASE is set to 
/var/tomcat6 and is not changeable.

To have more Tomcat SMF instances is beyond this case.

If ordinary user starts it own instance of Tomcat like this:
"CATALINA_BASE=/home/user/mytomcat /usr/tomcat6/bin/catalina.sh start"
Pid file is not created (unless CATALINA_PID environment variable is 
defined).

Petr

Reply via email to