STOP SERVICE on Multiplatforms
Use the MQSC command STOP SERVICE to stop a service.
Use MQSC commands
For information on how we use MQSC commands, see Performing local administration tasks using MQSC commands.
Synonym:
STOP SERVICE
Usage notes
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
- This parameter allows you to specify whether we want the command to return an error return
code, if the object is already in the state the command would move it to. Possible values are:
- NO
- If the service being stopped is already in that state, the command returns RC=10. This is the existing behavior, and NO is the default value.
- YES
- If the service being stopped is already in that state, the command returns RC=0. The return code is the case as if the service is not running.
Parent topic: MQSC commands
Related reference
Related information