Solved

Restarting a Windows Service quickly

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CA server migration from Windows 2003 to Windows 2012 R2 12 112
removing Exchange from an old windows 2003 DC 8 53
Auslogics BoostSpeed 9 software 5 60
2003 File Server upgrade 11 50
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.…
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.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

18 Experts available now in Live!

Get 1:1 Help Now