Commit 155146da authored by Tim Smith's avatar Tim Smith
Browse files

Don't fail on Debian 7 where the runsvdir init script doesn't exist


Signed-off-by: Tim Smith's avatarTim Smith <tsmith@chef.io>
parent 982665d5
...@@ -22,6 +22,7 @@ env: ...@@ -22,6 +22,7 @@ env:
- INSTANCE=default-amazonlinux - INSTANCE=default-amazonlinux
- INSTANCE=default-ubuntu-1404 - INSTANCE=default-ubuntu-1404
- INSTANCE=default-ubuntu-1604 - INSTANCE=default-ubuntu-1604
- INSTANCE=default-debian-7
- INSTANCE=default-debian-8 - INSTANCE=default-debian-8
- INSTANCE=default-debian-9 - INSTANCE=default-debian-9
- INSTANCE=default-centos-6 - INSTANCE=default-centos-6
......
...@@ -67,4 +67,5 @@ service plat_specific_sv_name do ...@@ -67,4 +67,5 @@ service plat_specific_sv_name do
action [:start, :enable] action [:start, :enable]
# this might seem crazy, but RHEL 6 is in fact Upstart and the runit service is upstart there # 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') || 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 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