class Specinfra::Command::Opensuse::Base::Service < Specinfra::Command::Suse::Base::Service
  class << self
    def check_is_running(service)
      "service #{escape(service)} status"
    end
  end
end

class Specinfra::Command::Opensuse::Base::Service < Specinfra::Command::Suse::Base::Service
  class << self
    include Specinfra::Command::Module::Systemd
    def check_is_running(service)
      "service #{escape(service)} status"
    end

    def check_is_enabled(service, level=nil)
       "systemctl is-enabled #{escape(service)}"
    end
  end
end

Include other systemd actions and override is_enabled check
Include other systemd actions and override is_enabled check

This PR adds all systemd functions to opensuse and overrides the is_enabled check to ensure
we also check for sysv style files in case we don't have a systemd service
