From: Tom Hughes Date: Mon, 2 Jun 2014 23:44:47 +0000 (+0100) Subject: Treat munin-node as an upstart managed service on 14.04 X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0826de111e02616451c918ac73e1a167a0e79c7c?hp=fd5ee39de6eac3658fee08d5864ac6446dc9bd53 Treat munin-node as an upstart managed service on 14.04 --- diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index f02730ebc..0bcccbb93 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -22,6 +22,9 @@ include_recipe "networking" package "munin-node" service "munin-node" do + if node[:lsb][:release].to_f >= 14.04 + provider Chef::Provider::Service::Upstart + end action [ :enable, :start ] supports :status => true, :restart => true, :reload => true end