Re: Logrotate in CentOS 5.4 more brutal (to httpd at least) than in 5.3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Friday 15 January 2010, Christopher Thorjussen wrote:
> 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:

5.4 does a "kill -HUP" which is what "service httpd reload" does too. The -HUP 
signal causes http to re-read stuff rather than shutting down.

Still, I don't really understand why 5.4 doesn't use "service reload" which 
seems more "correct" (and the init.d script does a little bit of checking 
before the kill -HUP too).

*shrug*
 Peter

> CentOS 5.3:
...
>     postrotate
>         /sbin/service httpd reload > /dev/null 2>/dev/null || true

> CentOS 5.4:
...
>     postrotate
>         /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null ||
> true endscript

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux