Bug 1243990 - stale pid files left behind after server shutdown
Summary: stale pid files left behind after server shutdown
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Greg Nichols
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-16 19:21 UTC by Brian Brock
Modified: 2015-11-19 16:35 UTC (History)
1 user (show)

Fixed In Version: redhat-certification-1.0-20150812
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 16:35:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2479 0 normal SHIPPED_LIVE redhat-certification bug fix and enhancement update 2015-11-19 21:34:15 UTC

Description Brian Brock 2015-07-16 19:21:59 UTC
After shutting down rhcert service with `rhcert-backend server stop`, .pid files referring to non-existent processes remain.

redhat-certification-1.0-20150707.el7.noarch
redhat-certification-hardware-1.7.1-20150625.el7.noarch

reliably reproducible

Steps to Reproduce:
1. install redhat-certification
2. `rhcert-backend server start` to create /var/rhcert and files in it
3. check contents of /var/rhcert/*.pid
4. `rhcert-backend server stop`
5. check /var/rhcert/*.pid again
6. compare with output from ps

Actual results:
# ls /var/rhcert
tasks.in|  tasks.out  tasks-RedHatCertDaemon.pid  tasks-RedHatCertificationListener.pid

In certain cases, the .pid files can interfere with detection of running process in the tool itself.  Looking for reproducible cases there, I've seen it happen once.


Expected results:
pid files erased on shutdown.  This makes it possible to determine whether the daemons crashed or gracefully shutdown, indicating whether or not some types of errors occured and reflecting the actual state of the system.

Additional info:
pid files usually reside in /run (/var/run symlinked to there)

Comment 3 Brian Brock 2015-09-16 21:13:52 UTC
verified in redhat-certification-2.0-20150916.el7.noarch

Comment 5 errata-xmlrpc 2015-11-19 16:35:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2479.html


Note You need to log in before you can comment on or make changes to this bug.