|
Answer» I need to stop services in the FOLLOWING order service1 service2 service3
Service 2 and service 3 should be stopped only after service1 has been stopped. After Service 2 and 3 has been stopped, once confirmed, they have to be started and once it is DONE, service 1 has been to be started
i found the way of stopping and starting of services. i.e, using sc command. All that I could not get is implementation of logic...
Request you to provide me some help.Code: [Select]sc stop service1 sc stop service2 sc stop service3
sc start service3 sc start service2 sc start service1Actually, I am AWARE of this. But, I PLANNING to automate. That means, If I go ahead like this. With confirmation of the stoppage of service 1 only, it will stop 2 and then 3. But, I want to get it confirmed and then only stop 2 and 3. Until service 1 is topped it has to wait, check the status and then it should stop service 2 and 3 after service 1 is done. Similarly, for start up as well.
|