Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2015-01-29
9
Medium Priority
?
78 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

636 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