Bug 1123730

Summary: httpd logrotate specifies ineffective "delaycompress"
Product: [Fedora] Fedora Reporter: A. Galama <agalama>
Component: httpdAssignee: Jan Kaluža <jkaluza>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: jkaluza, jorton, pahan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-20 05:49:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description A. Galama 2014-07-28 06:56:35 UTC
Description of problem:
logrotate config specifies "delaycompress" but lacks "compress".

Version-Release number of selected component (if applicable):
httpd-2.4.10-1.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. cat /etc/logrotate.d/httpd
2.
3.

Actual results:
logrotate config specifies "delaycompress" but lacks "compress". "delaycompress" only has effect when used in combination with "compress".

Expected results:
Depending on what the author intended, either add "compress" or remove "delaycompress".


Additional info:
$ cat /etc/logrotate.d/httpd 
/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
    endscript
}

Comment 1 Jan Kaluža 2014-08-20 05:49:29 UTC
I think this is intentional. The "compress" directive can be specified globally in /etc/logrotate.conf (it's commented out by a default, but user can uncomment it). In this case you have no clue that httpd should use "delaycompress". "delaycompress" without "compress" does not break anything.