sensu/sensu-build — pull request #48 by knyar (2013-04-14 10:43:17+00:00)
Title: Look for init children only in init.d status

I have an LXC environment with multiple containers running on a single server. Each container has its separate sensu client, and the host server has one as well.

Currently 'sensu-client status' executed on a host system will report multiple PIDs of sensu clients running in all LXC containers, and will report success even if sensu-client is not running on the host system itself.

This change makes pgrep only look for processess that are direct children on init, ignoring anything running in containers as the result.