misc >> Restart service automatically?

by chris » Fri, 15 Aug 2003 05:12:34 GMT

On Thu, 14 Aug 2003 18:43:17 GMT, Big Daddy Butthead
< XXXX@XXXXX.COM > wrote:

>I have a service which occasional dies. Is there any way to make NT/2000
>automatically restart it? Is there some little program I can run as a
>service which will start my program and restart it if it dies?


Go to the computer management console (compmgmt.msc). Got the service
section and get properties on the service. One of the tabs lets you
decide how to handle the service crash (eg restart, leave it dead,
notify, etc)


misc >> Restart service automatically?

by Big Daddy Butthead » Fri, 15 Aug 2003 05:37:12 GMT





Thanks. That works on Win2K. I need a solution that also works on NT4
though.



Similar Threads

1. Script required to automatically restart DHCP Service Services - Windows Small Business Server(SBS)

2. windows service not starting automatically on restart

Hi all,

I have created windows service using Dot Net 1.1. The service is set to
Automatic Start mode.The service is deployed on Windows 2003 Server.
The issue is whenever the server gets restarted (manually or
automatically) the services are not getting started even though they
are in automatic mode. Does any body has idea about this..

Thanks in advance

3. Trend OfficeScan Master Service Fails to Automatically Restart - Windows Small Business Server(SBS)

4. Script to automatically restart service after system start

Hi,

after booting my w2k3 server I have to restart a service (OpenVPN) in 
order to have it working correctly. I don't know if this is an issue 
with the OpenVPN config but for now I would like to have a script that 
automatically restarts the OpenVPN service ~5 minutes after the system 
startup.

I wrote a little batch file (c:\temp\openvpnrestart.bat) with sleep and 
net stop/start commands and created a new scheduled task that should 
start while starting the system (with user "Administrator"). But it 
seems that the script does not work properly while beeing started by a 
scheduled task. Starting it manually works perfectly.

How am I able to automatically restart a service ~5 minutes after system 
and service startup?

Kind regards,
Markus

5. Services crash & won't automatically restart - Windows XP

6. Automatically restarting service

How can a service be started automatically whenever the windows
reboots irrespective of the user who logs into the system ?

7. Restarting services with [Subsequent Restarts] in service control manager

8. Restart Button on Taskbar does not automatically restart after shut down

The Restart Button which appears when you click on Start in 
the Taskbar merely shuts down the laptop, and I have to 
manually start up again to load windows. This has been 
happening ever since I clean-reinstalled Windows XP Pro 
after doing a full format of the C drive. Even during the 
installation, all intermediate shutdown and start operations 
showed the same behaviour, and every time I had to press the 
start button after a shut down, Otherwise the laptop is 
performing fine. Can someone please advise how to rectify 
the fault? Many thanks in advance.