<def-group>

  <!-- THIS FILE IS GENERATED by create_services_enabled.py according to RHEL-7 template
       from RHEL/7/input/oval/oval_5.11/templates/template_service_enabled. 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_enabled.csv CSV FILE AND PLACE THOSE NEW OVAL VERSIONS into
       RHEL/7/input/oval/oval_5.11 DIRECTORY REPLACING THE FORMER ONES
  -->

  <definition class="compliance" id="service_SERVICENAME_enabled" version="1">
    <metadata>
      <title>Service SERVICENAME Enabled</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 7</platform>
      </affected>
      <description>The SERVICENAME service should be enabled if possible.</description>
      <reference source="JL" ref_id="RHEL7_20150605" ref_url="test_attestation" />
    </metadata>
    <criteria comment="package PACKAGENAME installed and service SERVICENAME is configured to start" operator="AND">
    <extend_definition comment="PACKAGENAME installed" definition_ref="package_PACKAGENAME_installed" />
    <criteria operator="OR" comment="service SERVICENAME is configured to start">
      <criterion comment="multi-user.target wants SERVICENAME" test_ref="test_multi_user_wants_SERVICENAME" />
    </criteria>
    </criteria>
  </definition>

  <linux:systemdunitdependency_test check="all" check_existence="any_exist" comment="systemd test" id="test_multi_user_wants_SERVICENAME" version="1">
    <linux:object object_ref="object_multi_user_target_for_SERVICENAME" />
    <linux:state state_ref="state_systemd_SERVICENAME_on"/>
  </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_on" comment="SERVICENAME listed at least once in the dependencies" version="1">
    <linux:dependency entity_check="at least one">SERVICENAME.service</linux:dependency>
  </linux:systemdunitdependency_state>

</def-group>
