Solved

Restarting a Windows Service quickly

Posted on 2006-11-16
4
188 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Ok,
Thanks.... Anyone else with any ideas?

Scott
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

10 Experts available now in Live!

Get 1:1 Help Now