[ZODB-Dev] ZEO signal handling cleanup

Chris McDonough chrism@zope.com
10 Oct 2002 21:26:05 -0400


On Thu, 2002-10-10 at 15:16, Guido van Rossum wrote:
> I'm trying to clean up signal handling in the ZEO storage server.
> 
> Here's the current situation:
> 
>   SIGTERM - terminate cleanly
>   SIGINT  - restart cleanly
>   SIGHUP  - close and reopen the log file
> 
> I propose that in the final ZEO 2 release it will be like this:
> 
>   SIGTERM - terminate cleanly (unchanged)
>   SIGHUP  - restart cleanly
>   SIGUSR1 - close and reopen the log file

Currently Zope uses SIGUSR2 to close and reopen log files.  It'd be nice
to have Zope and ZEO share signal meanings.  I don't mind changing it in
Zope if you feel that SIGUSR1 is a better signal for log rotation.

> This makes more sense, and the first two match the signal actions for
> Zope.  Reopening the log file seems a non-standard thing to do with a
> signal so SIGUSR1 (or SIGUSR2) would seem appropriate.  (Zope used to
> interpret SIGUSR2 as a request to pack the database, though ChrisM has
> removed this now from the trunk and I believe also from the Zope 2.6
> branch.)

Yep.

- C