Bug 446955
Summary: | Running "qpidd -c" gives the wrong answer for qpidd run from service | ||
---|---|---|---|
Product: | Red Hat Enterprise MRG | Reporter: | Andrew Stitcher <astitcher> |
Component: | qpid-cpp | Assignee: | Ted Ross <tross> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Kim van der Riet <kim.vdriet> |
Severity: | medium | Docs Contact: | |
Priority: | urgent | ||
Version: | beta | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-12-02 16:06:04 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Andrew Stitcher
2008-05-16 18:53:37 UTC
The reason this happens is that qpidd uses /var/run if running as root and /tmp if not running as root. When the service is started, the daemon is started under user "qpidd", thus the pid is stored in /tmp/qpidd.5672.pid. Then "qpidd -c" is run directly under sudo, it is root and looks in /var/run/qpidd.5672.pid and fails. turn this off by default / rip it out. Add a option that specifies that we want a pid file and where to write it. Since this is called from the rhmd init script, this keeps the service from starting: [root@dhcp-10-16-61-243 ~]# service rhmd start Starting RHM daemon: [ OK ] Exception: Cannot open /tmp/qpidd.5672.pid: No such file or directory [root@dhcp-10-16-61-243 ~]# service rhmd status rhmd is stopped bumping priority Oh, the above was on RHEL4, by the way. Fresh install, packages added from BT4 RHEL4 repository on webqa. qpidc-0.2.667603-1.el5, qpidc-perftest-0.2.667603-1.el5, qpidd-0.2.667603-1.el5, and rhm-0.2.2153-1.el5 have been pushed to the staging repo for testing |