[isalist] Re: off topic - service restart batch

  • From: "Glenn P. JOHNSTON" <glenn.johnston@xxxxxxxxxxx>
  • To: <isalist@xxxxxxxxxxxxx>
  • Date: Tue, 17 Oct 2006 10:02:28 +1000

This can be done, but you need to add the stops for the dependant services 
ahead of the service you are restarting. The order may be sensitive to several 
dependancies.
 
i.e.
 
net stop dependant_service_1
net stop dependant service_2
 
net stop service_you_wanted_to_stop.
 
Wait ........
 
Net start service_you_wanted_to_stop
Net start dependant service_2
Net start dependant_service_1
 
Glenn

________________________________

From: isalist-bounce@xxxxxxxxxxxxx on behalf of Ara Avvali
Sent: Tue 17/Oct/2006 08:02
To: isalist@xxxxxxxxxxxxx; exchangelist@xxxxxxxxxxxxx
Subject: [isalist] off topic - service restart batch



Greetings,

 

I am creating a batch so some services are restarted in a certain time. Adding 
it to schedule task was not successful. Running it manually I noticed it stops 
if there is a dependency service asking me if I want to restart the dependent 
service too. Checking on internet and help for net stop I couldn't find a 
switch that answers yes to question. Anyone knows how to force it to answer yes 
to the question? Thanks 

Other related posts: