yevgenko / cookbook-php-fpm

Installs/Configures php-fpm
http://community.opscode.com/cookbooks/php-fpm
Apache License 2.0
68 stars 117 forks source link

Allow service to report on status #10

Open jasonmarlin opened 11 years ago

jasonmarlin commented 11 years ago

Wondering if there's any reason we can't add status to default.rb - something like:

supports :start => true, :stop => true, :restart => true, :reload => true, :status => true

Using minitest-handler allows for an assertion like service("php5-fpm").must_be_running, which depends on status. Availability could vary by platform/version but on Ubuntu 12.04, the service does return status as expected.

Thanks, Jason