From 0826de111e02616451c918ac73e1a167a0e79c7c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 3 Jun 2014 00:44:47 +0100 Subject: [PATCH 1/1] Treat munin-node as an upstart managed service on 14.04 --- cookbooks/munin/recipes/default.rb | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.43.2