Using a command service object when a queue manager ends only

This example shows how to define a command service object to start a program that writes entries to the operating system's system log when a queue manager is stopped only.

  1. The command service object is defined, using the following MQSC command:
    
    DEFINE SERVICE(S3) +
    CONTROL(QMGR) +
    SERVTYPE(COMMAND) +
    STOPCMD('/usr/bin/logger') +
    STOPARG('Queue manager +QMNAME+ stopping')
    
    Where:
    • logger is a sample program provided with IBM® MQ that can write entries to the operating system's system log.
    • +QMNAME+ is a token representing the name of the queue manager.