Additional environment variables

When an instance of service object is started, the environment in which the service process is started is inherited from the environment of the queue manager. You can define additional environment variables to be set in the environment of the service process by adding the variables you want defining to the file, service.env.

The file, service.env, is located in /var/mqm on UNIX systems, and is the data directory selected during installation on Windows systems.

The format of the variables defined in the file, service.env, is a list of name and value variable pairs. Each variable must be defined on a new line, and each variable is taken as it is explicitly defined, including white space. An example of the file, service.env, follows:

  #********************************************************************#
  #*                                                                  *#
  #* <N_OCO_COPYRIGHT>                                                *#
  #* Licensed Materials - Property of IBM                             *#
  #*                                                                  *#
  #* 63H9336                                                          *#
  #* (C) Copyright IBM Corporation 2005                               *#
  #*                                                                  *#
  #* <NOC_COPYRIGHT>                                                  *#
  #*                                                                  *#
  #********************************************************************#
  #***********************************************************************#
  #* Module Name: service.env                                            *#
  #* Type       : WebSphere MQ service environment file                  *#
  #* Function   : Define additional environment variables to be set      *#
  #*              for SERVICE programs.                                  *#
  #* Usage      : <VARIABLE>=<VALUE>                                     *#
  #*                                                                     *#
  #***********************************************************************#
  MYLOC=/opt/myloc/bin
  MYTMP=/tmp
  TRACEDIR=/tmp/trace
  MYINITQ=ACCOUNTS.INITIATION.QUEUE