|
From: | Aleksander |
Subject: | Re: can we stop logging for certain service. |
Date: | Tue, 20 Feb 2007 17:10:57 +0200 |
User-agent: | Thunderbird 1.5.0.9 (X11/20070102) |
Qi Lu wrote:
We have a logging message to indicate Apache2 server pid has been changed every day. This is because the cron job does apache logrotate everyday, which restarts apache2.
Hi,AFAIK, you don't have to restart apache, a reload will do. In the logrotate config do a reload, if the init script supports it.
From /etc/logrotate.d/apache2: postrotate /etc/init.d/apache2 reload IIRC this should work for older versions too. I'm using the 2.2 series. Alex
[Prev in Thread] | Current Thread | [Next in Thread] |