Solved

Restarting a Windows Service quickly

Posted on 2006-11-16
4
194 Views
Last Modified: 2010-04-18
Hi All,
I have a Windows Service that runs a proprietary server manager for  software that my client uses.  About once a week, the service fails.  We have set the service to automatically restart.  This solves the problem.  My issue is that I can only set the service to restart after 1 minute.  I want to be able to have the service Immediately restart after 3 seconds.  Is there a registry change that I can make for this service to restart faster than the 1 minute allowed by the Windows Service GUI?

Any help would be greatly appreciated.

Scott
0
Comment
Question by:smpross
[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
  • 2
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
Lazarus earned 500 total points
ID: 17957352
Instead of restarting the service as a choice use the Run Program instead. Right a script that will restart the service from the script.
0
 

Author Comment

by:smpross
ID: 17957580
That might work....  But I would rather do it with a registry edit if possible.  Any Ideas?

Scott
0
 
LVL 20

Expert Comment

by:Lazarus
ID: 17957882
I don't know of any off hand. It would be particular to the service that you are trying to do it with for sure.
0
 

Author Comment

by:smpross
ID: 17958016
Ok,
Thanks.... Anyone else with any ideas?

Scott
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

617 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