From 52e464a8e1bd7572fb865d12f1617666db15b072 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 8 Jan 2016 22:49:47 +0000 Subject: [PATCH] Use systemd to manage kmod on Ubuntu 15.10 --- cookbooks/hardware/recipes/default.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 867f3a8aa..8ba21da8b 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -443,7 +443,11 @@ if node[:lsb][:release].to_f <= 12.10 end else service "kmod" do - provider Chef::Provider::Service::Upstart + if node[:lsb][:release].to_f >= 15.10 + provider Chef::Provider::Service::Systemd + else + provider Chef::Provider::Service::Upstart + end action :nothing subscribes :start, "template[/etc/modules]" end -- 2.39.5