Killing a Windows service stuck in the STOP_PENDING state
I ran into this issue when I attempted to restart the AdaptiveLogExporterService
Find below the steps to kill and restart pending service.
Example
C:\sc queryex AdaptiveLogExporterService
SERVICE_NAME: AdaptiveLogExporterService
TYPE : 10 WIN32_OWN_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x2
WAIT_HINT : 0x1388
PID : 1124
FLAGS :
C:\taskkill /PID 1124 /F
SUCCESS: The process with PID 1124 has been terminated.
C:\sc start AdaptiveLogExporterService
SERVICE_NAME: AdaptiveLogExporterService
TYPE : 10 WIN32_OWN_PROCESS
STATE : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x1388
PID : 4228
FLAGS :
SERVICE_NAME: AdaptiveLogExporterService
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
I ran into this issue when I attempted to restart the AdaptiveLogExporterService
Find below the steps to kill and restart pending service.
Example
C:\sc queryex AdaptiveLogExporterService
SERVICE_NAME: AdaptiveLogExporterService
TYPE : 10 WIN32_OWN_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x2
WAIT_HINT : 0x1388
PID : 1124
FLAGS :
C:\taskkill /PID 1124 /F
SUCCESS: The process with PID 1124 has been terminated.
C:\sc start AdaptiveLogExporterService
SERVICE_NAME: AdaptiveLogExporterService
TYPE : 10 WIN32_OWN_PROCESS
STATE : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x1388
PID : 4228
FLAGS :
SERVICE_NAME: AdaptiveLogExporterService
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
No comments:
Post a Comment