Merge pull request #5164 from inspec/ns/scientific-resource

Supports Scientific Linux in service resource
This commit is contained in:
Nick Schwaderer 2020-08-04 11:30:15 +01:00 committed by GitHub
commit 9af8ec5afe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) ||