Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

NT services startup order

Posted on 2003-12-03
5
Medium Priority
?
10,597 Views
Last Modified: 2010-02-09
Does anyone knows how to control the startup sequence of services in NT?

I'm using Windows Server 2003, but I beleive it's the same as in 2000, and my problem is the following, I want my Internet connection to fire first than anything else, because if it doesn't, my DNS server will fail, and then the SMTP also fails amongst many other things that depend on it. My Internet connection is not a Windows service, I have placed a shortcut in the startup folder, how can I make it a service so it loads even if I don't login?

After that, is there any way I can control not only the order in which these services kick, but also only allow other services to start if the Internet connection is active. I've seen an article some time ago ago this, but can't find it now.

Thx.
0
Comment
Question by:Nelson_Pires
  • 3
5 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 9865572
Services start (or start to start) BEFORE anything in the startup folder.  The only way to make your "internet connection" start first (and I assume this is some sort of broadband connection application supplied by your ISP) would be to have it run as a SERVICE itself and make these other services dependent on it.

A tool like FireDaemon (http://www.firedaemon.com) or Microsoft's SVRANY may be helpful here.

***********************************************************************************
                                   COMMENT DISCLAIMER
***********************************************************************************
   CAUTION - CAUTION - CAUTION - CAUTION - CAUTION - CAUTION - CAUTION - CAUTION
***********************************************************************************
                           READ THIS COMMENT AT YOUR OWN RISK

 This helpful comment MAY include straight talk relating to or about your question.
   If you are easily offended by such talk, please disregard this comment in its
                                        entirely.
***********************************************************************************
                               Thank you for your cooperation
***********************************************************************************
0
 

Author Comment

by:Nelson_Pires
ID: 9895299
Thanks jhance, FireDaemon can make my auto-dial exe into a service, what about changing DNS server, SMTP Delivery Agent and SMTP Receiver services to depend on it? These 3 services should only start after my FireDaemon service starts, preferebly after a small delay, to ensure the connection is active.
0
 

Author Comment

by:Nelson_Pires
ID: 9947599
Does anyone knows about this? How to make a service depend on another service, in other words, how to make service 2 start only if service 1 has started sucessfully.
0
 
LVL 12

Accepted Solution

by:
zoofan earned 375 total points
ID: 10215295
Use at your own risk!!! The registry can be nasty if you dont pay attention to detail.

Open the registry using regedit.exe
Find the ServiceName you wish to add a dependency too by name as a registry key under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\"SERVICE NAME"
For an example on how multiple entries are made look at  the "browser" service which requires the lanman server and lanman workstation services.
Click on Edit, then Add Value
Create a new value called "DependOnService". This value name is case-sensitive. The data type should be REG_MULTI_SZ.
Click OK to close the Add dialog
In the Data dialog box, enter the exact name for the service you wish too add as the denpendency. The service name must appear exactly the same as it does in the Windows Services panel.
Click Ok to close the dialog box.
Close the registry entry.
Reboot

The order at boot does not matter so long as the dependencies are set to start at boot-up,  windows will load the dependencies for each service first before attempting to load the main one.  If the dependencies fail the main one will as well.  If you need more help with this let me know.

Zoofan
0
 

Author Comment

by:Nelson_Pires
ID: 10439670
Thx, Zoofan, this is very good info on my problem, strange no one seams to come up with a tool to do this sort of thing yet.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month7 days, 13 hours left to enroll

824 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