Fix gerritbot init status checking.
Fix gerritbot init status checking.

The logic is lifted from apache, but changed to use ps instead of pidof,
since gerritbot runs as a python program, so pidof doesn't work.

Change-Id: I504e3534b55dfc27b09d7f044169b2f3a18dcd36
Reviewed-on: https://review.openstack.org/10881
Reviewed-by: James E. Blair <e81a02a9d6405977f63a769d9f6ec8ed9d924325@inaugust.com>
Reviewed-by: Clark Boylan <635fc31d01fa593720982fa0568e87170cedbe2c@gmail.com>
Approved: Monty Taylor <37c07a49ee3d5191376d758eb1d8298b34456b8e@inaugust.com>
Tested-by: Jenkins

open-switch/infra_puppet-jenkins,open-switch/infra_puppet-jenkins