Created attachment 414706 [details] output of logrotate Description of problem: Logrotate uses wrong logname format Version-Release number of selected component (if applicable): How reproducible: use logrotate Steps to Reproduce: 1.logrotate /etc/logrotate.d/httpd 2. 3. Actual results: He tries to rotate log.0,log.1,log.2,etc. Old logs are lost Expected results: SHoud use log-yyyymmdd format Additional info:
$ rpm -qf /etc/logrotate.d/httpd httpd-2.2.14-1.fc12.i686 => reassigning to httpd
The "dateext" (yyyymmdd) suffix format is configured in the /etc/logrotate.conf file before the application specific configurations in /etc/logrotate.d directory are being processed. Therefore if the user runs 'logrotate -f /etc/logrotate.d/httpd' the system-wide settings are not read and the old log format is being used because it's the hard-coded default. I wouldn't consider this to be a bug at all.
I agree with Tomas.