[Zope3-Users] Zope3 PID file ?

Thierry Florac thierry.florac at onf.fr
Tue Jul 17 08:29:51 EDT 2007


Le mardi 17 juillet 2007 à 12:23 +0200, Martijn Pieters a écrit :
> On 7/17/07, Thierry Florac <thierry.florac at onf.fr> wrote:
> > > What about "zopectl logreopen"?
> > >
> >
> > "zopectl logreopen" works, but it seems that a SIGUSR2 signal is sent
> > and that the whole Zope process is respawned.
> > So I don't see any difference with "zopectl restart"... :-(
> >
> > Am I wrong ?
> 
> You are. There is a SIGUSR2 handler in Signals.Signals, which calls
> the 'reopen' method on all active loggers..
> 
> Nowhere is there a signal handler that restarts Zope on SIGUSR2.
> SIGHUP will cause a restart, SIGINT a shutdown, and SIGTERM a fast
> shutdown.
> 

My comment was just based on what I can see in "z3.log" after running
"zopectl logreopen" :

------
2007-07-17T14:19:42 INFO ZEO.ClientStorage (14916) ClientStorage
(pid=14916) created RW/normal for storage: 'www'
------
2007-07-17T14:19:42 INFO ZEO.cache reusing persistent cache file
'/var/local/zope/zeo1-www.zec'
------
2007-07-17T14:19:46 INFO ZEO.ClientStorage (14916) Testing connection
<ManagedClientConnection ('127.0.0.1', 8100)>
------
2007-07-17T14:19:46 INFO ZEO.zrpc.Connection(C) (localhost:8100)
received handshake 'Z303'
------
2007-07-17T14:19:46 INFO ZEO.ClientStorage (14916) Server authentication
protocol None
------
2007-07-17T14:19:46 INFO ZEO.ClientStorage (14916) Connected to storage:
('localhost', 8100)
------
2007-07-17T14:19:46 INFO ZEO.ClientStorage (14916) No verification
necessary (last_inval_tid up-to-date)
------
2007-07-17T14:19:47 INFO ZEO.ClientStorage (14916) ClientStorage
(pid=14916) created RW/normal for storage: 'www'
------
2007-07-17T14:19:47 INFO ZEO.cache created temporary cache file
'<fdopen>'
------
2007-07-17T14:19:47 INFO ZEO.ClientStorage (14916) Testing connection
<ManagedClientConnection ('127.0.0.1', 8100)>
------
2007-07-17T14:19:47 INFO ZEO.zrpc.Connection(C) (localhost:8100)
received handshake 'Z303'
------
2007-07-17T14:19:47 INFO ZEO.ClientStorage (14916) Server authentication
protocol None
------
2007-07-17T14:19:47 INFO ZEO.ClientStorage (14916) Connected to storage:
('localhost', 8100)
------
2007-07-17T14:19:47 INFO ZEO.ClientStorage (14916) Verifying cache
------
2007-07-17T14:19:47 INFO ZEO.ClientStorage (14916) endVerify finishing
------
2007-07-17T14:19:47 INFO ZEO.ClientStorage (14916) endVerify finished
------
2007-07-17T14:19:47 INFO root -- HTTP:localhost:8080 Server started.
        Hostname: localhost
        Port: 8080
------
2007-07-17T14:19:47 INFO root Startup time: 22.791 sec real, 17.310 sec
CPU


This output is just the same as what I can read when starting Zope.
Also, as you can see, I'm using a ZEO client storage and Twisted web
server ; I only found "logreopen" and "SIGUSR2" references in ZDaemon
source code, and I thought that default server for Zope-3.3.1 was
Twisted...

Thanks (as always) for any complement...

  Thierry Florac
-- 
  Chef de projet intranet/internet
  Office National des Forêts - Département Informatique
  2, Avenue de Saint-Mandé
  75570 PARIS Cedex 12
  Mél : thierry.florac at onf.fr
  Tél. : +33 01.40.19.59.64
  Fax. : +33 01.40.19.59.85



More information about the Zope3-users mailing list