Commit f606e849 authored by Chris McDonough's avatar Chris McDonough

Fix from Andy:

The code for generating the 
Zope service name doesn't lower case the names. Being windows this means 
c:\Zope and C:\Zope are the same files and hence valid instance homes.

However their hashes are different meaning you can't find the service 
name without knowing the exact case. 
parent 09b60c8e
...@@ -99,7 +99,7 @@ sys.path.insert(0, SOFTWARE_HOME) ...@@ -99,7 +99,7 @@ sys.path.insert(0, SOFTWARE_HOME)
from nt_svcutils.service import Service from nt_svcutils.service import Service
servicename = 'Zope_%s' % str(hash(INSTANCE_HOME)) servicename = 'Zope_%s' % str(hash(INSTANCE_HOME.lower()))
class InstanceService(Service): class InstanceService(Service):
start_cmd = '"%s" "%s" -C "%s"' % (PYTHONW, ZOPE_RUN, CONFIG_FILE) start_cmd = '"%s" "%s" -C "%s"' % (PYTHONW, ZOPE_RUN, CONFIG_FILE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment