This section explains how to terminate a batch application and a batch server.
The method of terminating a batch application is as follows:
If a batch application is not terminated, use the cjkilljob command to terminate the batch application. Note that you must have root permission or Component Container administrator permission to execute the cjkilljob command.
The cjkilljob command terminates batch applications using the cancel method or the CTM. If a failure occurs in terminating the batch application, terminate the batch server forcibly.
To terminate a batch application:
# cd /opt/Cosminexus/CC/batch/bin |
cjkilljob server-name |
cjkilljob -jobID job-ID |
To terminate a batch server:
# cd /opt/Cosminexus/CC/server/bin |
# cjstopsv server-name |
An example of executing the cjstopsv command is as follows. In this example, the server name is MyServer.
# cd /opt/Cosminexus/CC/server/bin |
Note that in some cases, the termination processing of the batch server does not finish because of the processing in the batch server is not complete. In such cases, you must terminate the batch server forcibly. For forceful termination of the batch server, specify the -f option or the -fd option in the cjstopsv command, and then execute the command. If you specify the -fd option, the batch server is terminated forcibly after the error information of the batch server is collected.