serverspec/specinfra — pull request #6 by benlangfeld (2013-12-03 15:46:15+00:00)
Title: Fix checking for service started status on Debian

`service SERVICE_NAME status` should return a 0 exit code when running, or non-zero when not running. Piping into grep swallows this, and serves no apparent purpose. This results in services *always* appearing running as long as the command outputs something including 'running' to stdout, including strings like 'SERVICE_NAME is not running'.