[Zope] Graceful Zope 2 restart (ZServer)

Tres Seaver tseaver at palladion.com
Thu Feb 4 07:11:09 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Baiju M wrote:
> Hi,
>     Any pointers to restart Zope 2 (ZServer) gracefully ?
> 
> Does "Lifetime.shutdown(1)" will do that ?

That will do a restart, assuming that Zope is running under a "daemon
manager" (e.g., from 'zopectl', or Windows services).  If you want to
stop the server completely, pass an exit code of 0.

See the code in App/ApplicationManager.py for 'manage_restart' and
'manage_shutdown'.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktquV0ACgkQ+gerLs4ltQ6uKACcCImliqgaWheGMvRhruihThJ2
SwUAnRFGv1vpqSUl/IQmJmwabR5ceZYS
=ziG9
-----END PGP SIGNATURE-----



More information about the Zope mailing list