Solved

Service Activation Order

Posted on 1998-01-26
5
159 Views
Last Modified: 2013-12-14
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
0
Comment
Question by:os012897
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
biyiadeniran earned 50 total points
ID: 1769542

Try
DependonGroup Reg_MULTI_SZ Service group name [Service group name]
DependonService Reg_MULTI_SZ Service name [Service group name]

Good luck by the way do you have reskit?
0
 
LVL 3

Author Comment

by:os012897
ID: 1769543
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

0
 
LVL 3

Expert Comment

by:biyiadeniran
ID: 1769544
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
0
 
LVL 3

Author Comment

by:os012897
ID: 1769545
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


0
 
LVL 3

Expert Comment

by:biyiadeniran
ID: 1769546
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
0

Featured Post

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now