On 03-Aug-11 18:17, Michael Mol wrote:
---
[Wed Aug 03 03:10:01 2011] [notice] Graceful restart requested,
doing restart
---
What could have caused this? BTW I noticed all apache logs
have been rotated exactly at this time. Is that a reason
why apache was restarted? I never noticed it...
Very likely. logrotate would ask apache to restart so that it can move
the old log file out of the way.
You are right. I just found this in /etc/logrotate.d/apache2 :
/var/log/apache2/*log {
missingok
notifempty
sharedscripts
postrotate
/etc/init.d/apache2 reload > /dev/null 2>&1 || true
endscript
}
But is it actually necessary to do it? I mean everything between
postrotate-endscript is done after the log file has been rotated.
So I do not understand why at that time apache must be reloaded.
Moreover, because of that apache-reloading apc was emptied so it
takes again some time till all php-scripts are in cache again...
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.