Re: catalina_pid file contains +1 pid number instead of correct pid

2011-10-28 Thread Cooper man
eply/249/220 > > > Cooper man wrote: >> >> No problem , glad I can be of help as it took me so long to figure it out >> too >> >> >> You need to change the block where the pid is assigned which should be >> just under the line I described >&

Re: catalina_pid file contains +1 pid number instead of correct pid

2011-10-28 Thread Cooper man
l give you the correct pid. Set application.name or soehting similar as a jave env variable and then if [ ! -z "$CATALINA_PID" ]; then ps aux | grep tomcat | grep application.name=YOUR_APP_NAME | head -n 1 | awk '{ print $2 }' > $CATALINA_PID fi R

Re: catalina_pid file contains +1 pid number instead of correct pid

2011-10-27 Thread Cooper man
Hi Raghu, My guess is that you have changed the logging to use cronolog and as such the PID being written is actually the logging process and not the catalina process. Check your catalina.sh file If you see something like this org.apache.catalina.startup.Bootstrap "$@" start 2>&1 |/usr/bin/cro