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 975016 - Bad exit code when tuned is killed and pid file exists
Summary: Bad exit code when tuned is killed and pid file exists
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.1
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: Jan Ščotka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-17 12:22 UTC by Branislav Blaškovič
Modified: 2014-06-12 07:05 UTC (History)
7 users (show)

Fixed In Version: systemd-206-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-12 07:05:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Branislav Blaškovič 2013-06-17 12:22:06 UTC
Description of problem:
  According to [1] there should be exit code 1 when tuned is killed but pid file exists.

  [1] http://fedoraproject.org/wiki/Packaging:SysVInitScript#LSB_Header

Version-Release number of selected component (if applicable):
  tuned-2.2.2-1.el7.noarch

How reproducible:


Steps to Reproduce:
  1. systemctl start tuned
  2. kill -9 `cat /var/run/tuned/tuned.pid`
  3. systemctl status tuned
  4. echo $?

Actual results:
  Exit code is 3.

Expected results:
  Exit code should be 1.

Additional info:

Comment 2 Jaroslav Škarvada 2013-06-25 10:02:55 UTC
I think this is out of our control. It is managed by systemd, reassigning to systemd.

Comment 3 Harald Hoyer 2013-06-25 11:09:20 UTC
commit 83712936d986f2fdf7bcd2b3ea7f01ec08103cd6

Comment 4 Michal Schmidt 2013-06-25 12:04:52 UTC
(In reply to Harald Hoyer from comment #3)
> commit 83712936d986f2fdf7bcd2b3ea7f01ec08103cd6

I can't find this commit ID. Did you rebase it before pushing to upstream? I guess you meant this one:

  commit 175728c45fae8a2e1aa9d725ee2fbc7aa34e6dbf
  Author: Harald Hoyer <harald>
  Date:   Tue Jun 25 13:06:51 2013 +0200

      systemctl: conform to LSB with the "status" return code

Looking at the code, it's not clear to me how it can work. Are you sure the "PIDFile" property tells us anything about the existence of the file? Doesn't it merely mean that the unit has the "PIDFile=" directive in its unit file?

Comment 5 Harald Hoyer 2013-06-25 14:28:47 UTC
commit 3b05b8b3b503caf525fa72440a3f9f4bae75268b

better?

Comment 6 Michal Schmidt 2013-06-25 15:35:59 UTC
OK, that should work.

Comment 7 Harald Hoyer 2013-08-09 11:50:37 UTC
systemd-206-4.el7


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