[Zope] Debian zope 2.6.2 hangs & solution
Gabriel Wicke
groups at gabrielwicke.de
Mon Dec 8 08:03:45 EST 2003
Hi,
there's a bug in the debian zope package that causes it to hang when
running zopectl logrotate for the sixth time. By default this is done each
night, so the hangs are rather frequent.
This is a known bug
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=222443). I've tried the
second proposed solution (small modification in asyncore), but it didn't
help.
The first solution/workaround works for me:
edit line 641 in /usr/lib/python2.2/site-packages/ZopeCTL.py:
def logrotate(self):
# """
# logrotate() -> None
#
# If instance is running, force it to reopen its log files by sending
# SIGUSR2 to its PID.
# """
# self.__kill(SIGUSR2)
"""
restart() -> None
If instance is running, restarts it by sending SIGHUP to its PID; in
any other case starts the instance.
"""
if self.isrunning():
self.__kill(SIGHUP)
else:
self.__start()
This just restarts zope with SIGHUP instead of sending it a SIGUSR2.
Hope this helps somebody
Gabriel
More information about the Zope
mailing list