service is in stopping mode

Posted on 2012-08-17
Last Modified: 2012-08-21
How do I force a stop for a service that just says stopping? I'm on server 2003 r2 32bit.
Question by:jmahlmann
    LVL 7

    Expert Comment

    Which service is it?
    LVL 2

    Expert Comment

    Go to the command-prompt and query the service (e.g. the SMTP service) by using sc:

        sc queryex SMTPSvc
        This will give you the following information:

                TYPE               : 20  WIN32_SHARE_PROCESS
                STATE              : 4  RUNNING
                                        (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
                WIN32_EXIT_CODE    : 0  (0x0)
                SERVICE_EXIT_CODE  : 0  (0x0)
                CHECKPOINT         : 0x0
                WAIT_HINT          : 0x0
                PID                : 388
                FLAGS              :

        or something like this (the "state" will mention stopping).
        Over here you can find the process identifier (PID), so it's pretty easy to kill the associated process either by using the task manager or by using taskkill:

        taskkill /PID 388 /F

        where the /F flag is needed to force the process kill (first try without the flag).

    Please be careful when you do this; it's useful for emergencies but you shouldn't use it on a regular basis (use it as a last chance to solve the problem or to avoid the need of a reboot in an exceptional situation). It can even be used to stop a service that has the "NOT-STOPPABLE" and/or "IGNORES_SHUTDOWN" flag set (e.g. Terminal Services on a Windows Server 2003 is non-stoppable), at least when it's not hosted in the system process. You can query all this information by means of the sc command.

    Author Comment

    Acronis Managed Machine Service

    That is the service and I type that it and it keeps telling me there is no service.
    LVL 39

    Accepted Solution

    I would not use kill for service as it may lead to unpredicted server behavior :/
    I would strongly recommend server restart to get that fixed. If this service is hung that might be difficult to get it working after kill


    Author Comment

    Yeah. That is what I was going to do, but I have to wait till tonight.
    LVL 39

    Expert Comment

    by:Krzysztof Pytko
    Yes, make sure that no one is working and send earlier some info that you are going to reboot server at... and it will be unavailable for ... minutes, please close and save you data to prevent its loss

    Just in case to be able to explain your boss that it was planned and users were informed :)

    LVL 10

    Expert Comment

    (NOTE: What follows is purely for comedic relief.  The author assumes no responsibility for damages or loss if you decide to act on this post.)

    Or, you could do what one of our (former) entry-level NOC technicians did - just pull the plug!  Much quicker and easier than all that pesky policy/procedure and graceful shutdown malarkey.  *face palm*

    Me: "Do you have anything to say to possibly explain why you thought this was OK?"
    Tech: "Well...I did have a brain injury as a child that affects my short-term memory.  That's why I take so many notes."
    Me: "..."
    Tech: "I've had six brain surgeries."
    Me: "..."

    Author Comment

    Had to shut down.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    It is a known fact that servers reach the end of their lives. Some get there quicker than others, based on age, manufacturer, usage and several other factors. However, if your organization has spent time deploying Microsoft's Active Directory server…
    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now