Add convenience function to test if the service is running or properly stopped. We use different functions so that we can return more quickly if the desired status is reached before the timeout window is up.
Add convenience function to test if the service is running or properly
stopped. We use different functions so that we can return more quickly
if the desired status is reached before the timeout window is up.

efajardo/osg-test,efajardo/osg-test