NT services startup order

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.
Nelson_PiresAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jhanceCommented:
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
***********************************************************************************
Nelson_PiresAuthor Commented:
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.
Nelson_PiresAuthor Commented:
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.
zoofanCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nelson_PiresAuthor Commented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.