Merge pull request #5604 from sspans-sbp/patch-1

Add rocky and almalinux to service resource
This commit is contained in:
Clinton Wolfe 2021-09-22 10:14:58 -04:00 committed by GitHub
commit a0d03dbd1b
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", "scientific"
when "redhat", "fedora", "centos", "oracle", "cloudlinux", "scientific", "rocky", "almalinux"
version = os[:release].to_i
systemd = ((platform != "fedora" && version >= 7) ||