General discussion

Locked

How to control order of service startup

By Dbryden ·
I need to start services on my NT server in a predetermined order. I have seen an article which described how this was done in the registry but I have lost the article and no amount of searching has lead to an answer.
Can anyone tell me how this is done?

thanks
dave

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How to control order of service startup

by Iain Ogston In reply to How to control order of s ...

There is a services section of the registry which controls the dependencies of services starting up.
On a test machine I have this is found at \\HKLM\SYSTEM\ControlSet001\Services
Each service on the machine has an entry here. There might be a BINARY value called DependOnService here which stores the name of the service on which the service depends. This Binary value is double null terminated.

Hence if I had a service which needed the Tcpip service to start before it I would add the following value to the registry key for the service.

Name: DependOnService
Type: BINARY value
Value: 74 63 70 69 70 00 00 (Tcpip)

If you need some C to do this programatically then mail me. There might also be a way to do this with some of the resource kit tools like instsvc.exe (instsrv.exe? I cannot remember) or similar.

Collapse -

How to control order of service startup

by Dbryden In reply to How to control order of s ...

The question was auto-closed by TechRepublic

Collapse -

How to control order of service startup

I'm a programmer and an MCSE (going for MCSD soon).

I don't understand why you need to do this but you should know, services are usually dependent, like object (C++), or like the Hard Disk depends on the Controller, which depends on the Motherboard, which depends on the CPU... It's like a castle of cards, it's tricky and can colapse at any moment.

Make sure that you've read the NT Core Book from M$ and know what your'e doing before attempting to do this.

In this SAME section, are the device drivers, so you could be asking the system to start SQL before the Keyboard driver...

Not so bad, how about starting SQL before the SCSI driver, with a SCSI hard disk ?

Collapse -

How to control order of service startup

by Dbryden In reply to How to control order of s ...

The question was auto-closed by TechRepublic

Collapse -

How to control order of service startup

by Dbryden In reply to How to control order of s ...

This question was auto closed due to inactivity

Back to Windows Forum
5 total posts (Page 1 of 1)  

Operating Systems Forums