monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Variable PID Filenames...


From: Martin Pala
Subject: Re: [monit] Variable PID Filenames...
Date: Fri, 1 Aug 2008 21:30:23 +0200

Hi,

the variable pidfiles are not supportd, the wrapper can solve it ... see FAQ question no. 3: http://www.tildeslash.com/monit/doc/faq.php

Martin



On Aug 1, 2008, at 2:03 PM, David Heebner wrote:

Hi,

I have a service/process that I want to monitor, but the PID filenames change when the programs are restarted.  An example of the pidfile is:

program-agentd.7459.pid

where "7459" is the new PID.

Is there a wildcard or something that I can do with monit so that it only needs to recognize the "program-agentd" portion of the file?  Something akin to:

check process program-agentd with pidfile /var/run/program-agentd*

* I tried that of course, but no luck :-)

The only idea I've had thus far was to create a wrapper with the startup script that somehow gets the PID and creates another pidfile that is more in line with the standard "program-agentd.pid".

Thanks!

Dave
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

[Prev in Thread] Current Thread [Next in Thread]