Link to home
Start Free TrialLog in
Avatar of os012897
os012897

asked on

Service Activation Order

Hi there,

How can I set the order of execution of services using the DependOnService, DependOnGroup or Start Key in the registry?

Lets say I want to make sure, service A gets started before service B! Can someone give an example.

The values of those keys are just numbers and I do not know what they mean!

Greetings,

    os
ASKER CERTIFIED SOLUTION
Avatar of biyiadeniran
biyiadeniran

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of os012897
os012897

ASKER

Thanx, for the answer!

I had a look at the registry again:

I figured what I need is the DependOnService key. E.g. the Alerter service uses that key too. All its values are numbers, like "DependOnGroup 4d 4c 6e 30 8e 00 00". I figured that the numbers probably identify the different services that the Alerter service depends upon, right?

But I couldn't find a way how to find out which service corresponds to which number. How can I do that?

In you reponse you wrote:

     DependonService Reg_MULTI_SZ Service name

Is the Reg_MULTI_SZ the ID-number of the service? I could not find any DependOnService Entry where the name of the service would be used, as it seems to be in your example.

Sorry if my questions seems a bit confused but messing around with the registry without any helper-tools is pretty cryptic by itself ;)!

And no, I do not have the reskit.

Greetings,

     os

To find the services in any service group, use Regedit to open HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services.
On the Edit menu, click Find, type the name of the service group, and select only the Data check box. Press F3 to find other services in the service group.
To find the service group and tag number of any service, open the subkey representing the service in \CurrentControlSet\Services. Click Group to find its service group, and click Tag to find its tag number.




he following standard value entries appear in most subkeys representing services in the Services subkey. The content of the subkeys for each service vary depending on the nature of the service, whether the service is Plug and Play, and whether the service is installed on the computer.

Registry path:

HKEY_LOCAL_MACHINE\System
      \CurrentControlSet
            \Services
                  \Service name

DependOnGroup     REG_MULTI_SZ     Service group name [service group name]

Specifies the service group(s) that must be loaded before this service is loaded. This value entry ensures that prerequisite services are loaded successfully.

DependOnService     REG_MULTI_SZ     Service name  [service group name]

Specifies the service(s) that must be loaded before this service is loaded. This value entry ensures that prerequisite services are loaded successfully.

NB Send me your e-mail address and I'll send you a hlp file
Hi biyiadeniran,

Thanx again for your answer. It'd be nice if you could send me your help-file to os@cast.uni-linz.ac.at .

One last question:

I the tag-number the number I have to use for "DependOnService"?

Like if I want service A to start before service B and B has a tag-number of "6c" I would write for service A:

DependOnService 6c

??

Greetings,

      os

PS: Please make a reply in any case, so I can grade with A


sorry my machine crashed yesterday and the file is on it. I'll send it as soon as I fix the problem. I've mailed you the help file
Bye