On Fri, Oct 16, 2009 at 02:04:20PM -0500, Mark Martin wrote:
> <contract_export type="pid_file" name="/var/run/pids/tomcat.pid"/>

The problem is that a process contract can have more than one member
process (and almost always does at some point).  But consumers of PID
files usually want a single PID in a PID file.

Which PID should appear in such a magic PID file?

PID files are quaint in an SMF world.

It's possible that what's going on here is that some application
restarts the Tomcat service by killing the PID in the Tomcat PID file.
That's not the right way to restart a service under SMF management.

Another possibility is that some tool monitors the health of the service
by first looking up the Tomcat daemon PID and then monitoring the
process.  Here the right thing to do is to check the service itself, not
the processes that make it up.

Nico
-- 

Reply via email to