At 08:59 2002-06-25 +0200, Cornelis J. de Brabander said: Hi Kristina (and Cornelis), I suggest you have a look in the file: ..\ZServer\ZService.py It tells you more about how a service run. Zope (Python) can be started as a NT Service by using the PythonService from the Win32 extension to Python (which is included in the Windows distribution of Zope). <snip src=" ..\ZServer\ZService.py"> Note: you may have to register the Python service program first, win32\pythonservice.exe /register </snip> Best Regards, Johan Carlsson
Hi Kristina, I don't know who very much about windows services, but this tip is rather worthless. If your registry entry reads: ""c:\WebSite\bin\python.exe" " c:\WebSite\z2.py" -S" Zope is already running as a service, thanks to the "-S" option. As far as I can see the other options have nothing to do with it. At least I can do without. You might want to add the "-D" option (debug mode) to see what's happening. And if you add "STUPID_LOG_FILE=c:\WebSite\var\slf.log", the "slf.log" file in the "var" subdirectory of your zope installation will contain al the debugging information. Your complete entry would read then: ""c:\WebSite\bin\python.exe" "c:\WebSite\z2.py" -S -D STUPID_LOG_FILE=c:\WebSite\var\slf.log". hth
Cornelis J. de Brabander ========================================== Department of Education, Leiden University P.O.Box 9555, NL-2300 RB Leiden +31 71 527 3422/3401 brabander@fsw.leidenuniv.nl ==========================================
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Kristina Quimson Buenafe Sent: maandag 24 juni 2002 17:01 To: zope@zope.org Subject: [Zope] converting a manually run zope installation to a service
Hello,
I did the following steps (from http://twsite.bizland.com/twzop0002.htm) to try to convert my manually run Zope installation to a service, but it didn't work. Is there another way to do this, or did I miss something that I was supposed to do using the TechWorld site's way?
thanks, Kristina Buenafe
Converting a Manually Run Zope Installation to a Service Open the Registry Editor (Start Menu->Run-> regedit)
Locate (or create) the following registry entry:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WebSite\Param eters\Start
Change the value from:
"c:\WebSite\bin\python.exe" " c:\WebSite\z2.py" -S
To:
"c:\WebSite\bin\python.exe" "c:\WebSite\z2.py" -S -w 8079 -f "" -p "" -m ""
Where c:\WebSite is the Zope path. An explanation of the various parameters can be found in the Z2.PY file in the Zope root.
_________________________________ Kristina Buenafe University of Virginia School of Engineering and Applied Science kqb7a@virginia.edu
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Torped Strategi och Kommunikation AB Johan Carlsson johanc@torped.se Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: Västmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.torped.se http://www.easypublisher.com