[ZODB-Dev] ZEO and pidfiles

Chris McDonough chrism at plope.com
Tue Jan 27 21:11:42 EST 2004


There is a "start.py" in the ZEO directory which looks like it tries to
import the (ancient) zdaemon.Daemon package and writes a pid file and
all that jazz, but I'm not sure under what circumstance (if any) it's
supposed to be used.

If that's not used (there is also a "runzeo.py" script which is I think
is what zdctl calls), ZEO doesn't write a pidfile nor does
zeoctl/zdctl.  ZEO should likely be responsible for writing a pidfile. 
This follows Zope's pattern and would allow rc script writers to do what
Alan says.  It looks like runzeo already handles signals, so sending the
child process a signal should (ha ha) do the right thing.

- C


On Tue, 2004-01-27 at 20:05, Alan Milligan wrote:
> Hi,
> 
> I've seen a posting on gmane suggesting that one must grop for a ZEO pid 
> using zdctl.
> 
> Is this true?
> 
> There seems to be some code in ZEO.utils.Environment which suggests 
> setting ZEO_SERVER_PID will write to that file.  This unfortunately 
> doesn't work for me :(
> 
> I'd really like to see a pid file - even a stale one.  
> /etc/rc.d/init.d/functions provides a range of useful functions to deal 
> with these contingencies when writing a startup script.
> 
> TIA
> Alan
> 
> 
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
> 
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev




More information about the ZODB-Dev mailing list