Managing services

An instance of a service object can be started and stopped automatically by the queue manager, or started and stopped using the MQSC commands START SERVICE and STOP SERVICE.

Before you begin

Note: This task requires you to run MQSC commands. How you do this varies by platform. See Administering IBM® MQ using MQSC commands.

Procedure

Set the CONTROL parameter on the queue manager to start or stop an instance of a service object automatically, or use the MQSC commands START SERVICE and STOP SERVICE to do this manually.
When an instance of a service object is started, a message is written to the queue manager error log containing the name of the service object and the process ID of the started process. Here is an example log entry for a server service object starting:
02/15/2005 11:54:24 AM - Process(10363.1) User(mqm) Program(amqzmgr0)
Host(HOST_1) Installation(Installation1)
VRMF(7.1.0.0) QMgr(A.B.C)
AMQ5028: The Server 'S1' has started. ProcessId(13031).

EXPLANATION:
The Server process has started.
ACTION:
None.
Here is an example log entry for a command service object starting:
02/15/2005 11:53:55 AM - Process(10363.1) User(mqm) Program(amqzmgr0)
Host(HOST_1) Installation(Installation1)
VRMF(7.1.0.0) QMgr(A.B.C)
AMQ5030: The Command 'C1' has started. ProcessId(13030).

EXPLANATION:
The Command has started.
ACTION:
None.
When an instance server service stops, a message is written to the queue manager error logs containing the name of the service and the process ID of the ending process. Here is an example log entry for a server service object stopping:
02/15/2005 11:54:54 AM - Process(10363.1) User(mqm) Program(amqzmgr0)
Host(HOST_1) Installation(Installation1)
VRMF(7.1.0.0) QMgr(A.B.C)
AMQ5029: The Server 'S1' has ended. ProcessId(13031).

EXPLANATION:
The Server process has ended.
ACTION:
None.