Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-49856

htcacheclean.service missing [Install] section

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.5
    • rhel-9.5
    • httpd
    • httpd-2.4.59-7.el9
    • None
    • None
    • sst_cs_infra_services
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Sanity tests for systemd services are failing for htcacheclean.service because it lacks an [Install] section.

      :: [ 07:36:17 ] :: [ FAIL ] :: Command 'systemctl is-enabled htcacheclean' (Expected 1, got 0)
      :: [ 07:36:17 ] :: [ FAIL ] :: File '/var/tmp/rlRun_LOG.Pm82kl4u' should contain 'disabled'
      :: [ 07:36:18 ] :: [ LOG ] :: Output of 'systemctl enable htcacheclean':
      :: [ 07:36:18 ] :: [ LOG ] :: --------------- OUTPUT START ---------------
      :: [ 07:36:18 ] :: [ LOG ] :: The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
      :: [ 07:36:18 ] :: [ LOG ] :: Alias= settings in the [Install] section, and DefaultInstance= for template
      :: [ 07:36:18 ] :: [ LOG ] :: units). This means they are not meant to be enabled or disabled using systemctl.
      :: [ 07:36:18 ] :: [ LOG ] ::
      :: [ 07:36:18 ] :: [ LOG ] :: Possible reasons for having this kind of units are:
      :: [ 07:36:18 ] :: [ LOG ] :: • A unit may be statically enabled by being symlinked from another unit's
      :: [ 07:36:18 ] :: [ LOG ] :: .wants/ or .requires/ directory.
      :: [ 07:36:18 ] :: [ LOG ] :: • A unit's purpose may be to act as a helper for some other unit which has
      :: [ 07:36:18 ] :: [ LOG ] :: a requirement dependency on it.
      :: [ 07:36:18 ] :: [ LOG ] :: • A unit may be started when needed via activation (socket, path, timer,
      :: [ 07:36:18 ] :: [ LOG ] :: D-Bus, udev, scripted systemctl call, ...).
      :: [ 07:36:18 ] :: [ LOG ] :: • In case of template units, the unit is meant to be enabled with some
      :: [ 07:36:18 ] :: [ LOG ] :: instance name specified.

            luhliari@redhat.com Lubos Uhliarik
            rhn-engineering-jorton Joe Orton
            Lubos Uhliarik Lubos Uhliarik
            Branislav Náter Branislav Náter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: