[Zope] How to rotate the Z2.log log file

smoerk@gmx.de smoerk@gmx.de" <smoerk@gmx.de
Mon, 20 Sep 1999 12:51:24 +0200


But I don't know how I could modify ZServer that a SIGHUP will reopen
files.

On Fri, 17 Sep 1999 14:46:38 -0400, Christopher Petrilli wrote:

>> I don't want that Zope does it for me, and a cron job is fine, but I
>> don't know how I could do it. If I rename the file, ZServer doesn't
>> create a new one, but uses the renamed (Apache does the same). But
>> restarting Zope is not a solution, too. Any ideas?
>
>What needs to happen is that you have to get Zope to close it's log files
>and reopen them.  It doesn't (as with all UNIX software) track based on
>name, but on inode/fd map information.  If you send Apache a SIGHUP it'll
>close and reopen them. ZServer should do the same, but it doesn't.  This is
>a good patch opportunity ;-)
>
>Chris