P4DTI issue job001119

TitleCan't run as Windows Service with Python 2.4
Assigned userNick Barnes
DescriptionThe P4DTI is able to run as a Windows Service, using some of the Win32 extensions to Python. These extensions have changed in Python 2.4, in such a way that the P4DTI Windows Service cannot be started.
Analysiswin32serviceutil.HandleCommandLine no longer copes with more than one argument, so can't be used to start the service as we pass parameters such as the config file name as arguments (--p4dti-config, etc). We can use win32serviceutil.StartService directly. However, that doesn't completely fix the problem as there is also a change in the way in which arguments are passed, with the effect being that the config file is not properly picked up.
How foundautomated_test
EvidenceRunning the test suite.
Observed in2.2.1
Test proceduretest_p4dti.py nt_service.runTest
Created byNick Barnes
Created on2005-02-02 00:41:38
Last modified byNick Barnes
Last modified on2005-02-02 13:17:15
History2005-02-01 NB Created.


Change Effect Date User Description
142389 closed 2005-02-02 13:17:15 Nick Barnes Fix problems with managing Windows Services using Python 2.4. Tested against both 2.3 and 2.4.