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\Parameters\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
Hi, The simplest way would be to: 1) stop zope 2) rename the directory where you installed it 3) install a new zope instance under the old name of the directory, this time choosing run as service 4) stop this new service 5) delete the new directory 6) rename the old directory back to the original name 7) start the service again. This will make the installer create the right registry keys. Douwe
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Kristina Quimson Buenafe Sent: Monday, June 24, 2002 5:01 PM 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 )
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 )
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
Hi Johann and Cornelis, Thanks for your help. I still am getting errors though. I tried changing the registry settings to "C:\PROGRA~1\WebSite\bin\python.exe" "C:\PROGRA~1\WebSite\z2.py" -S -D "STUPID_LOG_FILE=C:\PROGRA~1\Web Site\var\slf.log" and got the error "Could not start the Zope (Web Site) service on Local Computer. Error 193: 0xc1." I also got this error with ZService.py: Traceback (most recent call last): File "C:\Program Files\WebSite\ZServer\ZService.py", line 159, in ? class ZServerService(win32serviceutil.ServiceFramework): File "C:\Program Files\WebSite\ZServer\ZService.py", line 166, in ZServerService file=open(path, 'r') IOError: [Errno 2] No such file or directory: 'C:\\ZServer\\svcname.txt' Any ideas? thanks, Kristina
Why don't you just save or rename the data.fs file, then reinstall Zope as a service, then restore the data.fs file? (You will have to stop the service while you restore the file). That's what I would try first. Cheers, Tom P
Hello, My Zope installation now works as a service -- after much uninstalling/reinstalling of Zope and messing with the services settings in administratrative tools, and stupid_log_file. Maybe having two Zopes on the same computer was causing problems too. Again, thanks for your help! Kristina On Tue, 25 Jun 2002 10:18:10 -0400 (Eastern Daylight Time) Kristina Quimson Buenafe <kqb7a@guppy.mail.virginia.edu> wrote:
Hi Johann and Cornelis,
Thanks for your help. I still am getting errors though. I tried changing the registry settings to "C:\PROGRA~1\WebSite\bin\python.exe" "C:\PROGRA~1\WebSite\z2.py" -S -D "STUPID_LOG_FILE=C:\PROGRA~1\Web Site\var\slf.log" and got the error "Could not start the Zope (Web Site) service on Local Computer. Error 193: 0xc1."
I also got this error with ZService.py:
Traceback (most recent call last): File "C:\Program Files\WebSite\ZServer\ZService.py", line 159, in ? class ZServerService(win32serviceutil.ServiceFramework): File "C:\Program Files\WebSite\ZServer\ZService.py", line 166, in ZServerService file=open(path, 'r') IOError: [Errno 2] No such file or directory: 'C:\\ZServer\\svcname.txt'
Any ideas?
thanks, Kristina
_________________________________ Kristina Buenafe University of Virginia School of Engineering and Applied Science kqb7a@virginia.edu (434) 244-9760 (home) (703) 585-8384 (cell)
participants (5)
-
Cornelis J. de Brabander -
douwe@oberon.nl -
Johan Carlsson [Torped] -
Kristina Quimson Buenafe -
Thomas B. Passin