Skip to content

Commit 224f5a7

Browse files
authored
Merge pull request #5 from sauvignon-chardonnay/fix-service-configuration
Update scshell.py :
2 parents b8f0736 + a592f03 commit 224f5a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scshell.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def run(
105105

106106
resp = scmr.hRQueryServiceConfigW(self.__scmr, serviceHandle)
107107
binaryPath = resp['lpServiceConfig']['lpBinaryPathName']
108+
startType = resp['lpServiceConfig']['dwStartType']
109+
errorControl = resp['lpServiceConfig']['dwErrorControl']
108110
logging.debug('(%s) Current service binary path %s' % (serviceName, binaryPath))
109111

110112
logging.info('Command need to use FULL path. No command output.')
@@ -148,8 +150,8 @@ def run(
148150
self.__scmr,
149151
serviceHandle,
150152
scmr.SERVICE_NO_CHANGE,
151-
scmr.SERVICE_DEMAND_START,
152-
scmr.SERVICE_ERROR_IGNORE,
153+
startType,
154+
errorControl,
153155
binaryPath,
154156
NULL,
155157
NULL,

0 commit comments

Comments
 (0)