Home

 

Autostarting a Service

 

This example shows how to define a server service object that can be used to automatically start the Trigger Monitor when the queue manager starts.

  1. The server service object is defined, using the following MQSC command:
    DEFINE SERVICE(TRIG_MON_START) +
           CONTROL(QMGR) +
           SERVTYPE(SERVER) +
           STARTCMD('runmqtrm') +
           STARTARG('-m +QMNAME+ -q +IQNAME+')
    Where:

    • +QMNAME+ is a token representing the name of the queue manager.

    • +IQNAME+ is an environment variable defined by the user in one of the service.env files representing the name of the initiation queue.

 

Parent topic:

Examples on using service objects


fa11500_


 

Home