Red Hat Bugzilla – Bug 469919
qpidd init script over-rides user option settings.
Last modified: 2010-10-14 11:57:13 EDT
Description of problem:
The qpid init script ignores environment settings of certain variables, e.g. QPID_DATA_DIR and QPID_PID_DIR because it passes them as command line arguments.
It also does not follow the standard posix convention for reading environment settings from a file in sysconfig
The init script should
1. Not use _any_ command line options since they override the users env settings.
2. Source /etc/sysconfig/qpidd to pick up any env settings there.
3. If there are critical options that will prevent qpidd functioning if left at the default value then set them using env. vars (e.g. QPID_PID_DIR) but ONLY if the env. var is not already set.
This issue came up on site with a customer, reported by firstname.lastname@example.org.
Fixed in part by 939726. This still passes the data-dir on the command line, but checks if it has been set via the env var and uses that value if so. The use of the daemon function prevents env vars being passed to the qpidd process which is why command line options are required here. See bug 564093 for more on that.
I'm marking this modified as the ability to pass env vars through with the daemon function call is more properly an OS level bug.
Fyi, clone createdas bug 635585 for addressing the issue more completely following the resolution of bug 564093.
this is on 1.2 already and
on qpid-cpp-server-0.7.946106-12 still ok
validated on RHEL5.5/RHEL4 i386 / x86_64
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
The startup script for the qpidd service no longer overrides environment variables.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.