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

bad logrotate file in JBCS httpd

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • httpd 2.4.23 SP1 DR3
    • httpd 2.4.23 CR5, httpd 2.4.23 SP1 DR2
    • httpd, rpm
    • None
    • Documentation (Ref Guide, User Guide, etc.), User Experience
    • DR3
    • logrotate uses symlink(/opt/rh/jbcs-http24/root/etc/httpd/logs) pointing to jbcs-httpd24-httpd log folder(/opt/rh/jbcs-httpd24/root/var/log/httpd/) and rotates only files ending log(errorlog, access.log, etc.)

      JBCS's logrotate file (/etc/logrotate.d/jbcs-httpd24-httpd) uses the wrong service name (httpd instead of jbcs-httpd24-httpd) and wrong path to log files /var/log/httpd/*log instead of /opt/rh/jbcs-httpd24/root/var/log/httpd/*log

      RHEL6 specific

      /var/log/httpd/*log {
          missingok
          notifempty
          sharedscripts
          delaycompress
          postrotate
              /sbin/service httpd restart > /dev/null 2>/dev/null || true
          endscript
      }
      

      Expected:

      /opt/rh/jbcs-httpd24/root/etc/httpd/logs/*log {
          missingok
          notifempty
          sharedscripts
          delaycompress
          postrotate
              /sbin/service jbcs-httpd24-httpd reload > /dev/null 2>/dev/null || true
          endscript
      }
      

      RHEL7 specific

      /var/log/httpd/*log {
          missingok
          notifempty
          sharedscripts
          delaycompress
          postrotate
              /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
          endscript
      }
      

      Expected:

      /opt/rh/jbcs-httpd24/root/etc/httpd/logs/*log {
          missingok
          notifempty
          sharedscripts
          delaycompress
          postrotate
              /bin/systemctl reload jbcs-httpd24-httpd.service > /dev/null 2>/dev/null || true
          endscript
      }
      

              gzaronik@redhat.com George Zaronikas
              rhn-support-aogburn Aaron Ogburn
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: