When trying to call service restart or start, the following
error message is received. The utility is not handling
embeded spaces in the SERVICE_NAME.
error:
Traceback (most recent call last):
File "C:\Python24\Tools\scripts\serviceinfo.py", line 23,
in ?
service_info(action, machine, service)
File "C:\Python24\Tools\scripts\serviceinfo.py", line 11,
in service_info
win32serviceutil.RestartService(service, machine)
File "C:\Python24\lib\site-packages\win32
\lib\win32serviceutil.py", line 409,
in RestartService
raise win32service.error, (hr, name, msg)
pywintypes.error: (1060, 'OpenService', 'The specified
service does not exist as
an installed service.')
Service entry on server using sc query:
SERVICE_NAME: JDEdwards OneWorld XE B733
Queue
DISPLAY_NAME: JDEdwards OneWorld XE B733
Queue
TYPE : 110 WIN32_OWN_PROCESS
(interactive)
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE,
ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
|