Solved

Service start timeout at reboot but works when system is totally up

Posted on 2004-08-26
6
922 Views
Last Modified: 2008-01-16
Experts,

I have a program that runs as a service at startup.  On most machines, the program starts normally and everything is OK.  On a few machines though (Windows 2000), we have seen this effect:  When the program tries to start in service mode during system startup, a 7009 event error occurs saying that there was a connection timeout.  After the system is started, you can start the service with no problems.  My thought is that there is not a certain resource available at the time the service is starting, or it is conflicting with some other operating system service that is starting, but it is impossible to isolate.  My main questions is that has anyone seen this before, and is it possible to tell the system the sequence of the services starting so I can make this one the last one?  One thought was to use a command line service start, but will the execution of that happen after all the system has gone though most of its reboot?

Thanks

onemorecoke
0
Comment
Question by:onemorecoke
6 Comments
 
LVL 11

Expert Comment

by:adonis1976
ID: 11903198
r u using WINS server?
0
 
LVL 11

Expert Comment

by:adonis1976
ID: 11903237
ok.. if there is any static entries in ur WINS db, this happens sometimes.. here is a link that might help u

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q177140

one more from jsi

http://www.jsiinc.com/SUBJ/tip4900/rh4935.htm
0
 
LVL 2

Accepted Solution

by:
Syncubus earned 150 total points
ID: 11903312
You could create a .BAT file to start the service and add a key to fire the .BAT to the HKLM/Software/Microsoft/Windows/Current Version/Run part of the registry.  This would let that service start last.

Set the service to be started manually.

StartServ.bat:
@Echo off
echo Starting ServiceName as service
net start ServiceName

Alternatively, you could just add the "net start servicename" to the registry and avoid the CMD window.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 11903635
As something to think about - I had issues with network logins some time ago.  Could it be that the machines you are having this problem on all have the same Network Card?  Or perhaps are all Windows XP machines that boot up and don't wait for the network to fully start?  This could be related to your issue, especially if the service/program is network related.
0
 
LVL 25

Assisted Solution

by:mikeleebrla
mikeleebrla earned 100 total points
ID: 11903928
this will not get to the root of your problem but it will get the service started for you.

go to the services MMC
find the service in question,,
go to properties
go to the recovery tab
change first, second, and subsequent failure action to restart the service.
0
 

Expert Comment

by:rogerfb
ID: 11905115
you can make the service depend on the last service to start.  http://support.microsoft.com/default.aspx?scid=kb;EN-US;193888
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

813 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

12 Experts available now in Live!

Get 1:1 Help Now