mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Add support suse 11 to service resource
This commit is contained in:
parent
f9ef1f5018
commit
81029274e2
1 changed files with 8 additions and 1 deletions
|
@ -135,8 +135,15 @@ module Inspec::Resources
|
|||
WindowsSrv.new(inspec)
|
||||
elsif %w{freebsd}.include?(family)
|
||||
BSDInit.new(inspec, service_ctl)
|
||||
elsif %w{arch opensuse}.include?(family)
|
||||
elsif %w{arch}.include?(family)
|
||||
Systemd.new(inspec, service_ctl)
|
||||
elsif %w{suse opensuse}.include?(family)
|
||||
version = inspec.os[:release].to_i
|
||||
if (%w{ suse opensuse }.include?(family) && version >= 12)
|
||||
Systemd.new(inspec, service_ctl)
|
||||
else
|
||||
SysV.new(inspec, service_ctl || '/sbin/service')
|
||||
end
|
||||
elsif %w{aix}.include?(family)
|
||||
SrcMstr.new(inspec)
|
||||
elsif %w{amazon}.include?(family)
|
||||
|
|
Loading…
Reference in a new issue