[Zope3-dev] Re: Exiting ZX3
Tres Seaver
tseaver at zope.com
Wed Dec 8 17:38:37 EST 2004
Peter Mayne wrote:
> Lennart Regebro wrote:
>
>> Peter Mayne wrote:
>>
>>> On Windows XP SP2:
>>>
>>> >python zopectl stop
>>
>>
>>
>> Is zopectl even supposed to be used on windows at all?
>> Windows has it's own service management...
>
>
> The suggestion was mde, so I demonstrated the result.
>
> I'm actually trying to terminate the server from the inside. We're using
> ZX3 to run a standalone application from a CD, and we need to shut
> things down gracefully.
from zope.app.server.servicecontrol import serverControl
serverControl.shutdown()
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the Zope3-dev
mailing list