Supports Scientific Linux in service resource

Currently when using Scientific Linux the user will be prompted with the
unsupported OS error message. As it is based on RHEL, it should be able
to be supported inn the same way.

Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
This commit is contained in:
Nick Schwaderer 2020-07-24 12:04:49 +01:00
parent 024a838a07
commit 8318e73237

View file

@ -141,7 +141,7 @@ module Inspec::Resources
elsif version > 0
SysV.new(inspec, service_ctl || "/usr/sbin/service")
end
when "redhat", "fedora", "centos", "oracle", "cloudlinux"
when "redhat", "fedora", "centos", "oracle", "cloudlinux", "scientific"
version = os[:release].to_i
systemd = ((platform != "fedora" && version >= 7) ||