Solved

Restarting a Windows Service quickly

Posted on 2006-11-16
4
190 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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