Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Command Reference


ajsstop

Organization of this page

Format

ajsstop
     [-F service-name]
     [-s|-n|-j|-k|-c|-r]
     [-f]
     [-w]

Description

Terminates the JP1/AJS3 scheduler service.

You must terminate the scheduler service in the following cases:

This command also cancels any schedule restriction or jobnet restriction, previously requested by this command, to return the operation to the original status.

Execution privileges

In Windows: Administrators privilege

In UNIX: Superuser privilege

Arguments

-F service-name

Specify the name of the target scheduler service.

You can specify a character string of 1 to 30 bytes.

If you omit this option, the system assumes the default scheduler service name.

-s

Terminates the scheduler service after all jobnets that are scheduled to execute on the day on which the command is executed are terminated (this is called schedule restriction).

The following examples show the termination of a scheduler service when a jobnet registered for execution belongs to a job group in which a base time has been set. In the examples, jobnets to be executed are marked "E" while those not to be executed are marked with "N".

Example 1:
Job group A:

Base time: 9:00

Scheduler service started at 9:00

Jobnet to be executed at 12:00 and 7:00

Command entered at 10:00

[Figure]

Example 2:
Job group A:

Base time: 10:00

Scheduler service started at 10:00

Jobnet to be executed at 12:00 and 7:00

Command entered at 9:00

[Figure]

Example 3:
Job group A:

Base time: 9:00

Scheduler service started at 9:00

Jobnet to be executed at 12:00 and 7:00

Job group B:

Base time: 11:00

Scheduler service started at 11:00

Jobnet to be executed at 13:00 and 9:00

Command entered at 10:00

[Figure]

Example 4:
Job group A:

Base time: 9:00

Scheduler service started at 9:00

Jobnet to be executed at 12:00 and 7:00

Job group B:

Base time: 10:00

Scheduler service started at 10:00

Jobnet to be executed at 13:00 and 8:00

Command entered at 11:00

[Figure]

If the scheduled date of jobnet execution is shifted to the date on which the command is entered, the system handles the jobnet as a jobnet executed on the date on which the command is entered.

Monitored generations of a jobnet with a start condition that are in Now monitoring status enter Interrupted monitoring status after all jobnets scheduled for execution on the day on which the command is executed have terminated. If the wait condition of a monitored jobnet that is subject to schedule restriction is met while the generation is still in Now monitoring status, the jobnet is executed.

-n

Terminates the scheduler service after all the jobnets that are running when the command is entered are terminated. (This is called jobnet restriction.)

A jobnet that is subject to schedule restriction will not start executing when:

  • The start time is reached

  • The previous generation ends when the jobnet is in Wait for prev. to end status

  • The start condition of a unit with a start condition is satisfied#

    #

    Execution generations generated when a start condition is met during schedule restriction are executed after you use this command with the -r option to cancel the schedule restriction, or you restart the scheduler service.

Monitored generations of a jobnet with start conditions that are in Now monitoring status enter Interrupted monitoring status after all jobnets running when the command is executed have ended.

-j

Terminates the scheduler service after all the jobs that are running and jobnet connectors that are in a running status# when the command is entered are terminated. (This is called job restriction.) The effect on running root jobnets is the same as if you interrupted the root jobnet.

#

A running status here refers to any of the following statuses:

  • Now running

  • Running + Warning

  • Running + Abend

A jobnet that is subject to schedule restriction will not start executing when:

  • The start time is reached

  • The previous generation ends when the jobnet is in Wait for prev. to end status

  • The start condition of a jobnet with a start condition is satisfied#

    #

    Execution generations generated when a start condition is met during job restriction are executed after you restart the scheduler service.

Monitored generations of a jobnet with start conditions that are in Now monitoring status enter Interrupted monitoring status immediately when the command is entered.

-k

Terminates the scheduler service immediately when the command is entered. This option causes the system to kill all the jobs that are running when the scheduler service is terminated. (This process is called forced termination (kill) of jobs.) The effect on running root jobnets is the same as if you killed the root jobnet.

A jobnet that is subject to forced job termination will not start executing when:

  • The start time is reached

  • The previous generation ends when the jobnet is in Wait for prev. to end status

  • The start condition of a jobnet with a start condition is satisfied#

    #

    Execution generations generated when a start condition is met for a job killed by forced job termination are executed after you restart the scheduler service.

Generations of a jobnet with start conditions that are in Now monitoring status enter Interrupted monitoring status immediately when the command is entered.

-c

Terminates the scheduler service immediately when the command is entered. This option, however, allows the system to continue all the jobs that are running when the service is terminated. (This process is called forced termination (kill) of the scheduler service.)

You can specify this option to kill all processes quickly, preventing the scheduler service process from being killed, when you want to stop the system in emergency.

-r

Cancels any schedule restriction (-s option) or jobnet restriction (-n option) applied, to return the operation to the original status.

-f

Accepts a request to stop the scheduler service even in the following status, in which no normal stop request can be accepted:

  • Start processing of the scheduler service requested to start is in progress

You cannot specify this option together with the -s, -n, -j, or -r option.

You must specify this option together with the -c or -k option.

If you execute the command without specifying the -f option before the scheduler service requested to start becomes up and running, an error occurs.

-w

Specify this option to terminate the command when the scheduler service completely stops. If you specify this option together with the -r option, the command terminates when the schedule restriction or the jobnet restriction is completely canceled.

Notes

Return values

0

Normal end

Multiple of 4 within the range from 4 to 124

Abnormal end

Example

The following command terminates the scheduler service after the currently running service is terminated:

ajsstop -n