RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1568549 - radvd reports different PIDs in log, pidfile and ps
Summary: radvd reports different PIDs in log, pidfile and ps
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: radvd
Version: 7.5
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Pavel Zhukov
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-17 18:09 UTC by Ondrej Mejzlik
Modified: 2018-04-18 10:11 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-18 10:11:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ondrej Mejzlik 2018-04-17 18:09:38 UTC
Description of problem:
radvd reports a set of different PIDs in /var/log/messages, pidfile and "ps aux | grep radvd"

Version-Release number of selected component (if applicable):
Found on RHEL 7.5
$ uname -r
3.10.0-862.el7.x86_64

# rpm -qa | grep radvd
radvd-1.9.2-9.el7_5.4.x86_64

How reproducible:
Easy to reproduce.

Steps to Reproduce:
1. Start radvd with minimal functional config file
   radvd -p /tmp/pidfile.pid 
2. Compare pids in
   cat /tmp/pidfile.pid
   tail /var/log/messages 
   ps aux | grep radvd 

Actual results:
# cat pidfile.pid 
17816

# tail /var/log/messages 
Apr 17 14:02:47 host-172-16-36-36 radvd[17813]: version 1.9.2 started

# ps aux | grep radvd
root     17814  0.0  0.0   8612   272 pts/0    S    14:02   0:00 radvd -p /tmp/pidfile.pid
root     17816  0.0  0.0   8612   360 ?        S    14:02   0:00 radvd -p /tmp/pidfile.pid

Expected results:
/var/log/messages should probably contain one of the pids seen in either the pidfile or ps.

Additional info:

Comment 2 Pavel Zhukov 2018-04-18 10:11:38 UTC
"radvd[17813]: version 1.9.2 started" printed on *stdout* prior to fork (and written to logs by systemd) so it contains pid file of parent process.  Daemon doesn't have stdout opened.


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