Solved

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

Posted on 2004-08-26
6
912 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

21 Experts available now in Live!

Get 1:1 Help Now