From fd5ee39de6eac3658fee08d5864ac6446dc9bd53 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 3 Jun 2014 00:41:15 +0100 Subject: [PATCH] Treat ssh as an upstart managed service on 14.04 --- cookbooks/openssh/recipes/default.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/openssh/recipes/default.rb b/cookbooks/openssh/recipes/default.rb index 432da265f..0bae591ce 100644 --- a/cookbooks/openssh/recipes/default.rb +++ b/cookbooks/openssh/recipes/default.rb @@ -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 -- 2.39.5