]> git.openstreetmap.org Git - chef.git/commitdiff
Treat ssh as an upstart managed service on 14.04
authorTom Hughes <tom@compton.nu>
Mon, 2 Jun 2014 23:41:15 +0000 (00:41 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 2 Jun 2014 23:41:15 +0000 (00:41 +0100)
cookbooks/openssh/recipes/default.rb

index 432da265f91449c33538667d56c43ac215719741..0bae591ceb4d2ea4c973b202fda626fb517074ad 100644 (file)
@@ -24,6 +24,9 @@ package "openssh-client"
 package "openssh-server"
 
 service "ssh" 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