<def-group>

  <!-- THIS FILE IS GENERATED by create_services_disabled.py according to RHEL-7 template
       from Debian/8/input/oval/oval_5.11/templates/template_service_disabled. DO NOT EDIT.

       IF REQUIRED INSTEAD OF EDITING THIS FILE RATHER EDIT THAT TEMPLATE DIRECTLY.
       AFTER THAT BE SURE TO REGENERATE ALL CORRESPONDING UNCOMMENTED CHECKS FROM
       service_disabled.csv CSV FILE AND PLACE THOSE NEW OVAL VERSIONS into
       Debian/8/input/oval/oval_5.11 DIRECTORY REPLACING THE FORMER ONES
  -->

  <definition class="compliance" id="service_SERVICENAME_disabled" version="1">
    <metadata>
      <title>Service SERVICENAME Disabled</title>
      <affected family="unix">
        <platform>Debian 8</platform>
      </affected>
      <description>The SERVICENAME service should be disabled if possible.</description>
      <reference source="PT" ref_id="DEB8_20151215" ref_url="test_attestation" />
    </metadata>
    <criteria comment="package PACKAGENAME removed or service SERVICENAME is not configured to start" operator="OR">
      <extend_definition comment="PACKAGENAME removed" definition_ref="package_PACKAGENAME_removed" />
      <criteria operator="OR" comment="service SERVICENAME is not configured to start">
        <criterion comment="SERVICENAME not wanted by multi-user.target" test_ref="test_SERVICENAME_not_wanted_by_multi_user_target" />
      </criteria>
    </criteria>
  </definition>

  <linux:systemdunitdependency_test check="all" check_existence="any_exist" comment="systemd test" id="test_SERVICENAME_not_wanted_by_multi_user_target" version="1">
    <linux:object object_ref="object_multi_user_target_for_SERVICENAME" />
    <linux:state state_ref="state_systemd_SERVICENAME_off"/>
  </linux:systemdunitdependency_test>

  <linux:systemdunitdependency_object id="object_multi_user_target_for_SERVICENAME" comment="list of dependencies of multi-user.target" version="1">
    <linux:unit>multi-user.target</linux:unit>
  </linux:systemdunitdependency_object>

  <linux:systemdunitdependency_state id="state_systemd_SERVICENAME_off" comment="SERVICENAME is not listed in the dependencies" version="1">
    <linux:dependency entity_check="none satisfy">SERVICENAME.service</linux:dependency>
  </linux:systemdunitdependency_state>

</def-group>
