monit-general
[Top][All Lists]
Advanced

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

Re: create pid file


From: Kevin Chadwick
Subject: Re: create pid file
Date: Sun, 13 Mar 2011 20:52:43 +0000

On Sun, 13 Mar 2011 16:53:22 +0000
António P. P. Almeida wrote:

> Could happen that there are child processes and that you get more than
> one PID as the result of pidof though. Choose and post process the
> reply as needed then.

You can use pgrep to regex match say the parent process but then you
could just use monits new process match function which avoids dealing
with permissions or considering the possibility of stale pid
files/collisions.



reply via email to

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