Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

Graceful Zope 2 restart (ZServer)

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


mbaiju at zeomega

Feb 3, 2010, 5:54 PM

Post #1 of 2 (787 views)
Permalink
Graceful Zope 2 restart (ZServer)

Hi,
Any pointers to restart Zope 2 (ZServer) gracefully ?

Does "Lifetime.shutdown(1)" will do that ?

Regards,
Baiju M
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


tseaver at palladion

Feb 4, 2010, 4:11 AM

Post #2 of 2 (745 views)
Permalink
Re: Graceful Zope 2 restart (ZServer) [In reply to]

-----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
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-----

_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.