Skip to content

Commit 442f0e4

Browse files
committed
Merge pull request #112 from elijah/patch-1
Add conditional to cover systemd in Ubuntu 15.04+
2 parents 1986bc0 + 7454b7b commit 442f0e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

recipes/server.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
# @see http://docs.opscode.com/resource_service.html#providers
3131
case node['platform']
3232
when 'ubuntu'
33-
if node['platform_version'].to_f >= 12.04
33+
if node['platform_version'].to_f >= 15.04
34+
provider Chef::Provider::Service::Systemd
35+
elsif node['platform_version'].to_f >= 12.04
3436
provider Chef::Provider::Service::Upstart
3537
end
3638
end

0 commit comments

Comments
 (0)