[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Service Recovery Windows 2003 - what about when service fails to start after reboot?

Posted on 2015-01-29
9
Medium Priority
?
79 Views
Last Modified: 2015-02-05
If you set service to restart after failure I guess this applies to FAILURE only?

i.e. Not if service fails to start after server is booted?

Is there any way to do this? At the moment, our server reboots (planned) every night but sometimes services fail to start.
0
Comment
Question by:paul williams
  • 4
  • 3
  • 2
9 Comments
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 2000 total points
ID: 40578962
Is there any way to do this?

You can write a batch file, which checks to see if the service is running, and if it isn't, attempts to start it.  So do 'net start' from the command line, and find the name for your service.
Then have the batch file perform a:
net start | find /i "[exact name of service found above]"
if errorlevel==1 net start "[exact name of service you want to make certain is running]"

You can then use "Scheduled Tasks" to run the batch file, scheduled to run daily at a time after the server should have recovered from it's reboot.  (And if you like, you can use the Advanced Schedule Options to repeatedly run the task... it'll only attempt to start the service if it doesn't find it in the list of running tasks.)
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 40579291
If it are a few, specific services, set them to Delayed start. Often start failures on boot are caused by dependant services not running on time.
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 40579336
I believe the option to set services to 'Delayed Start' was added to Windows Server 2008.  That said, if you can identify a dependent service, you can delay the start of your problematic service(s) by setting a dependency.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 71

Expert Comment

by:Qlemo
ID: 40579447
Sorry, that is correct. Didn't see "Windows 2003". So "Delayed Start" is not available.
0
 

Author Comment

by:paul williams
ID: 40579608
For now, we're using a batch file and scheduled job.
0
 

Author Comment

by:paul williams
ID: 40590858
I've requested that this question be closed as follows:

Accepted answer: 0 points for paul williams's comment #a40579608

for the following reason:

This is the only way under 2003.
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 40590859
I believe this is exactly what was suggested under the first comment (#40578962).
0
 

Author Comment

by:paul williams
ID: 40591232
sorry you are correct.
0
 

Author Closing Comment

by:paul williams
ID: 40591299
Sorry I missed this one. Excellent idea.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Screencast - Getting to Know the Pipeline
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

830 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