[UNIX, Linux, Windows, IBM i]

STOP SERVICE (stop a service) on Multiplatforms

Use the MQSC command STOP SERVICE to stop a service.

Using MQSC commands

For information on how you use MQSC commands, see Administering IBM® MQ using MQSC commands.

Syntax diagram for STOP SERVICE

Synonym:

STOP SERVICE

Read syntax diagramSkip visual syntax diagram STOP SERVICE ( service-name ) IGNSTATE(NO)(YES)

Usage notes for STOP SERVICE

If the service is running, it is requested to stop. This command is processed asynchronously so might return before the service has stopped.

If the service that is requested to stop has no STOP command defined, an error is returned.

Parameter descriptions for STOP SERVICE

(service-name)
The name of the service definition to be stopped. This is required. The name must that of an existing service on this queue manager.
IGNSTATE
Specifies whether the command fails if the service is already stopped. The possible values are:
NO
The command fails if the service is already stopped. This is the default value.
YES
The command succeeds regardless of the current state of the service.