Replaceable inserts on service definitions

In the definition of a service object, it is possible to substitute tokens. Tokens that are substituted will automatically be replaced with their expanded text when the service program is executed. Substitute tokens can be taken from the following list of common tokens, or from any variables that are defined in the file, service.env.

Common tokens

The following are common tokens that can be used to substitute tokens in the definition of a service object:

MQ_INSTALL_PATH
The install location of WebSphere MQ:
MQ_DATA_PATH
The location of the WebSphere MQ data directory:
QMNAME
The current queue manager name.
MQ_SERVICE_NAME
The name of the service
MQ_SERVER_PID
This token can only be used by the STOPARG and STOPCMD arguments.

For server service objects this token is replaced with the process id of the process started by the STARTCMD and STARTARG arguments. Otherwise, this token is replaced with 0.

To use replaceable inserts, insert the token within + characters into any of the STARTCMD, STARTARG, STOPCMD, STOPARG, STDOUT or STDERR strings. For examples of this, see Examples on using service objects.