Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-744

Wrong directory for PID is used while starting jbcs-httpd24-htcacheclean.service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • httpd 2.4.37 SP1 GA
    • httpd 2.4.29 GA
    • httpd
    • None
    • 2
    • +
    • Workaround Exists
    • Hide

      Any of the below can be treated as a workaround :
      [1] :
      ~~~~~~

      1. cd /opt/rh/jbcs-httpd24/root/var/run
      2. mv jbcs-httpd24-httpd httpd
      3. systemctl restart jbcs-httpd24-htcacheclean.service
        ~~~~~~

      or
      [2] :
      ~~~~~~

      • Change/Modify the pid path as below in "/usr/lib/systemd/system/jbcs-httpd24-htcacheclean.service"
      1. grep pid /usr/lib/systemd/system/jbcs-httpd24-htcacheclean.service
        PIDFile=/opt/rh/jbcs-httpd24/root/var/run/jbcs-httpd24-httpd/htcacheclean/pid
        ExecStart=/opt/rh/jbcs-httpd24/root/usr/sbin/htcacheclean -P /opt/rh/jbcs-httpd24/root/var/run/jbcs-httpd24-httpd/htcacheclean/pid -d $INTERVAL -p $CACHE_ROOT -l $LIMIT $OPTIONS
      2. systemctl daemon-reload
      3. systemctl restart jbcs-httpd24-htcacheclean.service
        ~~~~~~
      Show
      Any of the below can be treated as a workaround : [1] : ~~~~~~ cd /opt/rh/jbcs-httpd24/root/var/run mv jbcs-httpd24-httpd httpd systemctl restart jbcs-httpd24-htcacheclean.service ~~~~~~ or [2] : ~~~~~~ Change/Modify the pid path as below in "/usr/lib/systemd/system/jbcs-httpd24-htcacheclean.service" grep pid /usr/lib/systemd/system/jbcs-httpd24-htcacheclean.service PIDFile=/opt/rh/jbcs-httpd24/root/var/run/jbcs-httpd24-httpd/htcacheclean/pid ExecStart=/opt/rh/jbcs-httpd24/root/usr/sbin/htcacheclean -P /opt/rh/jbcs-httpd24/root/var/run/jbcs-httpd24-httpd/htcacheclean/pid -d $INTERVAL -p $CACHE_ROOT -l $LIMIT $OPTIONS systemctl daemon-reload systemctl restart jbcs-httpd24-htcacheclean.service ~~~~~~
    • Hide
      • Install "jbcs-httpd24-httpd-2.4.29-35.jbcs.el7.x86_64"
      • Start "jbcs-httpd24-htcacheclean.service"
      • It will not start and throws an error since PID-Directory is not available as per the definition in service file.
      Show
      Install "jbcs-httpd24-httpd-2.4.29-35.jbcs.el7.x86_64" Start "jbcs-httpd24-htcacheclean.service" It will not start and throws an error since PID-Directory is not available as per the definition in service file.

      • Installed the RPM jbcs-httpd24-httpd-2.4.29-35.jbcs.el7.x86_64 and canĀ“t start the Service jbcs-httpd24-htcacheclean.service, because the PID-Directory is not available.
        ~~~~~~~~~~
        rpm -ql jbcs-httpd24-httpd-2.4.29-35.jbcs.el7.x86_64 | grep htcache
        /opt/rh/jbcs-httpd24/root/var/run/jbcs-httpd24-httpd/htcacheclean
        -> this directory is from the RPM

      /usr/lib/systemd/system/jbcs-httpd24-htcacheclean.service
      PIDFile=/opt/rh/jbcs-httpd24/root/var/run/httpd/htcacheclean/pid
      -> this directory is not in the RPM
      ~~~~~~~~~~

              dsartzet@redhat.com Dimitris Sartzetakis (Inactive)
              rhn-support-gandavar Girish Andavarapu (Inactive)
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: