27.02.2013 Views

ExpressCluster X 2.0 for Windows Reference Guide - Nec

ExpressCluster X 2.0 for Windows Reference Guide - Nec

ExpressCluster X 2.0 for Windows Reference Guide - Nec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5 Compatible command reference<br />

362<br />

Return Value<br />

0 Success<br />

1 The status is invalid.<br />

2 The application or service was not stopped.<br />

(The application or service is being started or stopped)<br />

7 An error occurred in WIN32API.<br />

9 The parameter is invalid.<br />

Remarks (1) This command can be specified both in and outside scripts.<br />

(2) To terminate the application, send WM_CLOSE message to the<br />

application. When the application is not terminated within the<br />

specified time (/T time), run TerminateProcess() to <strong>for</strong>cibly<br />

terminate the application process.<br />

(3) To start or stop the service, send requests <strong>for</strong> start or stop of the<br />

service to the service control manager (SCM). When the start or<br />

stop has not been completed within the specified time (/T time), the<br />

return value of 2 is returned.<br />

(4) Refer to the table below <strong>for</strong> the values that can be specified in mode.<br />

If mode is invalid, the return value of 1 is returned.<br />

Notes Be<strong>for</strong>e stopping the service (mode = stop), suspend the monitoring of<br />

watchID (mode=pause) which is monitoring the same service name, if<br />

any. A service error is detected (event ID=3506 - 3510) if the service is<br />

stopped without suspending the monitoring.<br />

Application/Service specification matrix<br />

Status<br />

Monitoring Suspending monitoring<br />

Started Starting Terminating Terminated Started Starting Terminating Terminated<br />

Mode<br />

pause O O X - X X X X<br />

continue X X X - O O O (*2) O (*2)<br />

start X X X - X X X O<br />

stop O (*1) O X - O O X X<br />

O: Executable X:Not executable (Invalid status) :This combination does not exist.<br />

(*1) When “stop” is executed, monitoring of the application or service is suspended, and the application and<br />

service is stopped.<br />

(*2) When “continue” is executed, the application and service is started, and monitoring of the application or<br />

service is resumed.<br />

<strong>ExpressCluster</strong> X <strong>2.0</strong> <strong>for</strong> <strong>Windows</strong> <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!