ADHEAVEN - Natali Ardianto Official

COO tiket.com. Advisor bouncity.com. Advisor golfnesia.com. Co-founded urbanesia.com. Initiator #StartupLokal

September 9, 2011 4:29 pm

Killing SphinxSearch Windows Service that is stuck in “Stopping” Status?

Ever had a moment where you tried to stop a service, but ended up stuck in the “stopping” process without you being able to kill it in the Task Manager? Well here’s the way out:

C:\sphinx\bin>sc queryex sphinxsearch
SERVICE_NAME: sphinxsearch
        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          : 0x0
        PID                : 2468
        FLAGS              :

C:\sphinx\bin>taskkill /PID 2468 /F
SUCCESS: The process with PID 2468 has been terminated.

This can be done to any Windows services that is stuck on ‘stopping’ status.