Appendix H.4 How to terminate a system

This section explains how to terminate a batch application and a batch server.

Organization of this subsection
(1) Terminating a batch application
(2) Terminating a batch server

(1) Terminating a batch application

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:

  1. Move the current directory using the cd command.

    # cd /opt/Cosminexus/CC/batch/bin

  2. Terminate the batch application using the cjkilljob command.
    You must have root permission or Component Container administrator permission to execute the command.
    To terminate batch applications, server names or job IDs might be specified.
    When the server name is specified
    The batch application is terminated using the cancel method.

    cjkilljob server-name

    When the job ID is specified
    The batch application is terminated by CTM.
    This command can only be used when you use the job scheduling functionality.

    cjkilljob -jobID job-ID

(2) Terminating a batch server

To terminate a batch server:

  1. Move the current directory using the cd command.

    # cd /opt/Cosminexus/CC/server/bin

  2. Terminate the batch server using the cjstopsv command.
    You must have root permission or Component Container administrator permission to execute the command.

    # 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
# cjstopsv MyServer
#

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.