Yeah, I like it as close to the regular Chef service resource as possible.
On Apr 27, 2013 8:44 AM, "Sean Porter" <notifications@github.com> wrote:

> In recipes/api_service.rb:
>
> > @@ -17,9 +17,7 @@
> >  # limitations under the License.
> >  #
> >
> > -service "sensu-api" do
> > -  provider node.platform_family =~ /debian/ ? Chef::Provider::Service::Init::Debian : Chef::Provider::Service::Init::Redhat
> > -  supports :status => true, :restart => true
> > -  action [:enable, :start]
> > -  subscribes :restart, resources("ruby_block[sensu_service_trigger]"), :delayed
> > +sensu_service "sensu-api" do
> > +  init_style node.sensu.init_style
> > +  action :enable
>
> perhaps this should be [:enable, :start], as just :enable may confuse
> people.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sensu/sensu-chef/pull/148/files#r3989395>
> .
>