[Zope-dev] Can logreopen restarts Zope ?

Julien Anguenot ja at nuxeo.com
Fri Jun 30 08:55:42 EDT 2006


Jens Vagelpohl wrote:
> 
> On 30 Jun 2006, at 14:30, Julien Anguenot wrote:
>>>> For maximum reliability I tend to forego the built-in log reopening in
>>>> favor of using the logrotate utility in "copytruncate" mode. This will
>>>> not require any log file reopening, logrotate will simply make a copy of
>>>> the existing log and then truncate the logfile that continues to be in
>>>> use to zero length. Zope or the ZEO server won't have to know or care at
>>>> all at that point.
>>>
>>> Thank you Jens for the quick reply.
>>>
>>> I think I'm going to send these instructions, to be on the safe side, to
>>> the administrators taking care of the cluster.
>>>
>>> Do you have any idea about the "zopectl logreopen" misbehavior as
>>> someone who's avoiding using it explicitly ;) ?
> 
> I'm afraid I don't. I have seen issues myself where the server would
> just die and not come up again, but never investigated it. The logreopen
> solution offers a safe and lasting fix and it even simplifies log
> rotation configuration.
> 
> Here's a very simple one that rotates ZEO server and client logs for a
> simple one-client ZEO setup, we use it for www.zope.de:
> 
> [jens at barney ~]$ cat /etc/logrotate.d/zope.de
> /home/zope/zope.de/log/*.log {
>         weekly
>         rotate 10
>         missingok
>         compress
>         copytruncate
> }

Alright. Thank you for the configuration script.

	J.

-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - www.nuxeo.com
CPS Platform - http://www.cps-project.org
Mobile: +33 (0) 6 72 57 57 66

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20060630/b81dab1f/signature.bin


More information about the Zope-Dev mailing list