-
Bug
-
Resolution: Done
-
Major
-
httpd 2.4.23 CR5, httpd 2.4.23 SP1 DR2
-
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 }
- is related to
-
JWS-608 httpd24 from JWS channel has a bad logrotate file
- Closed