Cancel Shutdown via Script?

J

JM

I have a service that must be stopped using it's own command line
interpreter. If Windows asks the service to stop, the service aborts
abnormally and causes database corruption. I plan to use the Group Policy
Shutdown Script to invoke the service shutdown script; easy enough.

The problem is that the service (Hyperion Essbase OLAP Server) will
occasionally respond that it can't stop right now because something really
important is happening, like a defrag or a calculation.

In this case, I want to abort the shutdown/restart.

I can handle coding the logic to stop the service and check it's state, I'm
just having a problem with aborting the shutdown.

Thanks!!!!
 
J

Jerold Schulman

I have a service that must be stopped using it's own command line
interpreter. If Windows asks the service to stop, the service aborts
abnormally and causes database corruption. I plan to use the Group Policy
Shutdown Script to invoke the service shutdown script; easy enough.

The problem is that the service (Hyperion Essbase OLAP Server) will
occasionally respond that it can't stop right now because something really
important is happening, like a defrag or a calculation.

In this case, I want to abort the shutdown/restart.

I can handle coding the logic to stop the service and check it's state, I'm
just having a problem with aborting the shutdown.

Thanks!!!!
I have no idea, but you can create your own shutdown that starts
with your service shutdown and if it is ok, then invokes shutdown.exe or psshutdown, tip 4086 in the 'Tips & Tricks' at http://www.jsiinc.com


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top