1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

running a service with srvany.exe

Discussion in 'Legacy Windows' started by rhamek, 2002/09/03.

Thread Status:
Not open for further replies.
  1. 2002/09/03
    rhamek

    rhamek Inactive Thread Starter

    Joined:
    2002/07/12
    Messages:
    7
    Likes Received:
    0
    I created a service on a W2K server using the Srvinstw.exe and Srvany.exe files from the Windows Resource Kit. The service is named 'DPBServer'. In the registry the 'DPBServer' service is running a file named DPBServer.exe (This is a PowerBuilder application that we wrote). We are trying to troubleshoot the application that uses the DPBServer service. For some unknown reason, the DPBserver.exe process is just closing. I can watch this through Task Manager as our application is running. The srvany.exe process stays running.
    When this process dies, shouldn't the service stop? If not, what is the purpose of srvany.exe? If the service would stop when the process dies, then we could add the option to restart the service each time this happens.

    Any help is greatly appreciated.
     
  2. 2002/09/03
    Dorfmann

    Dorfmann Inactive

    Joined:
    2002/04/26
    Messages:
    100
    Likes Received:
    0
    When this process dies, shouldn't the service stop?
    No. It will run with nothing under it.

    What is the purpose of srvany.exe?
    To run an application or batch file that wasn't written as a service at system boot (before logon).

    You should still be able to monitor the failing process using tlist, pslist or ptree command line utilities. There are also alternatives to srvany like firedaemon.
     

  3. to hide this advert.

  4. 2002/09/03
    rhamek

    rhamek Inactive Thread Starter

    Joined:
    2002/07/12
    Messages:
    7
    Likes Received:
    0
    I've tried FireDaemon also. Do you know of any tool that will stop the service if the process it runs dies?

    For a temp fix, I wrote a bat file to run as a scheduled AT job. It checks that the specific process is running. If it is not, then it restarts the service.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.