htcacheclean service is not starting in RHEL 7

Solution Unverified - Updated -

Issue

  • htcacheclean service is not getting started in RHEL 7 with below errors in /var/log/messages :
Nov 30 18:33:46 localhost systemd: Starting Disk Cache Cleaning Daemon for Apache HTTP Server...
Nov 30 18:33:46 localhost htcacheclean: Could not write the pid file '/run/httpd/htcacheclean/pid': Permission denied
Nov 30 18:33:46 localhost systemd: htcacheclean.service: control process exited, code=exited status=1

Environment

  • Red Hat Enterprise Linux
  • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content