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


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to