[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

how to start my service after all of services were started

Hi experts,

I built my service but now I want to my service is started when others services were started. Could you tell me whether or not I can do it? what functions I can use for configuring it?

Thanks you.
0
tungpn
Asked:
tungpn
  • 2
1 Solution
 
x4uCommented:
Are you talking about a Window NT (or 2k/XP) service?

In this case you need to install the service first, so that the Windows service control manager knows about it. For this you can either use the instsrv command or implement the installation into your service itself. To see how to use instsrv just run it from the cmmand line and it will show it's arguments with examples.

If the service is properly installed you can configure, start and stop with the services control panel (just run services.msc from the command line). I.e. setting the startup type to Automatic in the service's properties will start it automatically when Windows is started.
0
 
cwwkieCommented:
take a look at the DependsOnService registry key. This list the service(s) which must start before that service can start.
0
 
cwwkieCommented:
Excuses, that should be DependOnService (without the 's')
more information:
    http://www.petri.co.il/delay_services_in_windows_2000_xp_2003.htm
    http://www.jsifaq.com/subA/tip0000/rh0069.htm
0

Featured Post

Choose an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now