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.

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

Reply via email to