i would really prefer

```ruby
   case
   when node.platform_family?("rhel")

   when node.platform_family?("ubuntu")

  end
```

because it will apply to Amazon linux, fedora, centos, rhel, oracle linux,
scientific linux, etc.

i don't mean to harrass you about this, just want to make sure u -
@rafaelmagu -  get the credit for commit :)
On Tue, Feb 19, 2013 at 8:35 PM, Rafael Fonseca <notifications@github.com>wrote:

> In recipes/beaver.rb:
>
> > @@ -163,21 +163,58 @@
> >    notifies :restart, "service[logstash_beaver]"
> >  end
> >
> > -template "/etc/init.d/logstash_beaver" do
> > -  mode "0754"
> > -  source "init-beaver.erb"
> > -  variables(
> > -            :cmd => cmd,
> > -            :pid_file => pid_file,
> > -            :user => node['logstash']['user'],
> > -            :log => log_file,
> > -            :platform => node['platform']
> > -            )
> > -  notifies :restart, "service[logstash_beaver]"
> > +use_upstart = false
> > +supports_setuid = false
> > +case platform_family
>
> Changed to use node.platform, and included 'fedora' to the list.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/lusis/chef-logstash/pull/76/files#r3068158>.
>
>