We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8f0736 + a592f03 commit 224f5a7Copy full SHA for 224f5a7
scshell.py
@@ -105,6 +105,8 @@ def run(
105
106
resp = scmr.hRQueryServiceConfigW(self.__scmr, serviceHandle)
107
binaryPath = resp['lpServiceConfig']['lpBinaryPathName']
108
+ startType = resp['lpServiceConfig']['dwStartType']
109
+ errorControl = resp['lpServiceConfig']['dwErrorControl']
110
logging.debug('(%s) Current service binary path %s' % (serviceName, binaryPath))
111
112
logging.info('Command need to use FULL path. No command output.')
@@ -148,8 +150,8 @@ def run(
148
150
self.__scmr,
149
151
serviceHandle,
152
scmr.SERVICE_NO_CHANGE,
- scmr.SERVICE_DEMAND_START,
- scmr.SERVICE_ERROR_IGNORE,
153
+ startType,
154
+ errorControl,
155
binaryPath,
156
NULL,
157
0 commit comments