Hello everyone during some tests where I ran in my local environment I came
across an odd behavior on tomcat start

During the start process catalina.sh script create a new PID file using the
following statement
*echo $! > "CATALINA_PID"*

$! *Expands to the process **ID** of the job most recently placed into the
background,* whether executed as an asynchronous command or using the bg
 builtin

The PID number inside the PID file is different of the tomcat process
started which I could verify with:
ps -ef  | grep 'catalina.base=$CATALINA_HOME'
So, cat from CATALINA_PID file is different from returned ps command.

My thought on that matter is that between a tomcat starting and the PID
file creation a different process was placed into the background.

Is that possible?
Does it make sense?

KR,
Rafael

Reply via email to