Graceful Zope 2 restart (ZServer)
Hi, Any pointers to restart Zope 2 (ZServer) gracefully ? Does "Lifetime.shutdown(1)" will do that ? Regards, Baiju M
-----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@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-----
participants (2)
-
Baiju M -
Tres Seaver