Skip to content

Commit

Permalink
Merge pull request #112 from elijah/patch-1
Browse files Browse the repository at this point in the history
Add conditional to cover systemd in Ubuntu 15.04+
  • Loading branch information
chris-rock committed Feb 24, 2016
2 parents 1986bc0 + 7454b7b commit 442f0e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
# @see http://docs.opscode.com/resource_service.html#providers
case node['platform']
when 'ubuntu'
if node['platform_version'].to_f >= 12.04
if node['platform_version'].to_f >= 15.04
provider Chef::Provider::Service::Systemd
elsif node['platform_version'].to_f >= 12.04
provider Chef::Provider::Service::Upstart
end
end
Expand Down

0 comments on commit 442f0e4

Please sign in to comment.