OK, that works for me.  I liked the idea of re-using existing stuff.  Cwj
is learning more rubies!
On Apr 27, 2013 8:41 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
>
> Using init_style makes it much easier to set, do not need to know the
> correct provider, and it also abstracts a bunch of stuff.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sensu/sensu-chef/pull/148/files#r3989391>
> .
>