[Zope-Checkins] CVS: Zope/skel/bin - zopeservice.py.in:1.1.2.2
Chris McDonough
chrism at zope.com
Mon Aug 25 18:30:46 EDT 2003
Update of /cvs-repository/Zope/skel/bin
In directory cvs.zope.org:/tmp/cvs-serv30317/skel/bin
Modified Files:
Tag: Zope-2_7-branch
zopeservice.py.in
Log Message:
Merge from HEAD:
Change the python executable replacement string from PYTHON to PYTHONW
to account for changes to mkzopeinstance which make a distinction.
Use the nt_svcutils package instead of the older Zope.Startup.nt package.
=== Zope/skel/bin/zopeservice.py.in 1.1.2.1 => 1.1.2.2 ===
--- Zope/skel/bin/zopeservice.py.in:1.1.2.1 Wed Aug 20 10:33:52 2003
+++ Zope/skel/bin/zopeservice.py.in Mon Aug 25 17:30:46 2003
@@ -86,7 +86,7 @@
import sys
# these are replacements from mkzopeinstance
-PYTHON = r'<<PYTHON>>'
+PYTHONW = r'<<PYTHONW>>'
SOFTWARE_HOME=r'<<SOFTWARE_HOME>>'
INSTANCE_HOME = r'<<INSTANCE_HOME>>'
ZOPE_HOME = r'<<ZOPE_HOME>>'
@@ -97,12 +97,12 @@
sys.path.insert(0, SOFTWARE_HOME)
-from Zope.Startup.nt import NTService
+from nt_svcutils.service import Service
servicename = 'Zope_%s' % str(hash(INSTANCE_HOME))
-class InstanceService(NTService.ZopeService):
- start_cmd = '"%s" "%s" -C "%s"' % (PYTHON, ZOPE_RUN, CONFIG_FILE)
+class InstanceService(Service):
+ start_cmd = '"%s" "%s" -C "%s"' % (PYTHONW, ZOPE_RUN, CONFIG_FILE)
_svc_name_ = servicename
_svc_display_name_ = 'Zope instance at %s' % INSTANCE_HOME
_exe_name_ = PYTHONSERVICE_EXE
More information about the Zope-Checkins
mailing list