Skip to content

Commit 7454b7b

Browse files
committed
Add conditional to cover systemd in Ubuntu 15.04+
1 parent 1986bc0 commit 7454b7b

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)