Second startup of a service which is allready running

Roderik van Zevenbergen 21 Reputation points
2020-09-22T12:21:25.433+00:00

Hi all,

At my company we are encountering a strange issue:

A manually started Service is automatically started for the second time, however this causes the application to crash.

Has anyone any idea were to look for this issue? Why the service is started for the second time? What triggers this action?

Regards,

Roderik van Zevenbergen

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 32,076 Reputation points
    2020-09-24T12:42:49.567+00:00

    My experience is that services sometimes launch sub processes and at times the main program may terminate, but the other programs continue to execute which prevent the service from restarting.

    Download and run Process Explorer. process-explorer

    Process names will be indented by process parent. Here SearchInder.exe has launched 2 sub programs.

    28054-capture.jpg

    You need to find any orphan processes associated with your service and terminate them. If the parent has terminated, then the orphan's name may be in the left most column of the display.

    Look at a test server that is running the same software and see what the process tree looks like.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-09-22T13:20:41.16+00:00

    You may be able use a tool like ProcMon to determine what starts it.
    https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

    May also want to bring the issue to the application developer.

    --please don't forget to Accept as answer if the reply is helpful--


  2. TimCerling(ret) 1,156 Reputation points
    2020-09-22T14:41:36.44+00:00

    I agree with Dave that you need to check with the application developer. Generally if an application only works properly with a single instantiation, the application should check to see if there is another copy already running before it instantiates itself.


  3. Molly Lu 761 Reputation points Microsoft Vendor
    2020-09-23T09:34:15.457+00:00

    Hi,

    Welcome to Microsoft Q&A.

    Try disable the service to check if your system has any other error, if the system runs normally without this service, check if this service is an official one or a third party service.

    Beat regards,
    Molly

    --------------------------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.