IBM Support

How to set an environment variable in IBM MQ when starting queue manager with systemctl script

Question & Answer


Question

You want to start a queue manager with systemctl script. You followed IBM MQ recommendation to set an environment variable  in "bash_profile" and "profile" of "mqm" user, however, the environment variable is not picked up by the MQ system processes.
But if you start the queue manager manually (not via the systemctl script) with the MQ command "strmqm", then the queue manager is able to retrieve the environmental variables.

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"ARM Category":[{"code":"a8m3p000000PCH0AAO","label":"Administration"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions"},{"Product":{"code":"SSKM59","label":"IBM MQ for HPE NonStop"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SS5K6E","label":"IBM MQ Appliance"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM MQ

Component:
Administration

Software version:
All Versions

Operating system(s):
Linux

Document number:
7053364

Modified date:
28 April 2025

UID

ibm17053364

Manage My Notification Subscriptions