[CentOS] Logrotate in CentOS 5.4 more brutal (to httpd at least) than in 5.3?

Fri Jan 15 09:35:11 UTC 2010
Christopher Thorjussen <Christopher.Thorjussen at carrot.no>

I've just updated a few CentOS 5.3 servers to 5.4. One of them were a Apache Webserver. Doing a diff/check on the new ".rpmnew" config files that are made, I saw that the logrotate command for apache was changed. In 5.3 it did a reload, but in 5.4 it does a hard kill:

CentOS 5.3:

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


CentOS 5.4:

/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}

Isn't this a bit harsh in 5.4? Wouldn't the 5.3 method be better?

-Christopher Thorjussen