Solved

Restarting a Windows Service quickly

Posted on 2006-11-16
4
192 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
  • 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 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