mizzy/serverspec — pull request #33 by darron (2013-04-03 18:55:13+00:00)
Title: This fix hides the grep process from the first grep - which now notifies you if your process is not running.

I'm not sure how cross platform it is - but it appears to work on Ubuntu linux.

There's a few other options to do this - lots of info here:

http://serverfault.com/questions/367921/how-to-prevent-ps-reporting-its-own-process

This was the simplest and works properly in my test case.