Commit 91ceb91e authored by jonathan.pirro's avatar jonathan.pirro
Browse files

fixing upstart logic to work with older Amazon versions

parent 44ed9c44
......@@ -75,6 +75,6 @@ plat_specific_sv_name = case node['platform_family']
service plat_specific_sv_name do
action [:start, :enable]
# this might seem crazy, but RHEL 6 is in fact Upstart and the runit service is upstart there
provider Chef::Provider::Service::Upstart if (platform?('amazon') || platform_family?('rhel')) && node['platform_version'].to_i == 6
provider Chef::Provider::Service::Upstart if (platform?('amazon') && node['platform_version'].to_i > 2) || (platform_family?('rhel') && node['platform_version'].to_i == 6)
not_if { platform?('debian') && node['platform_version'].to_i < 8 } # there's no init script on debian 7...for reasons
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment