Why do you need to specify this status parameter here and pass it to grep? The service resource will use the initscript's status method automatically, and parse its exit code, which is much better than doing this grep.