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 1257243 - RFE: Option for poweroff(1)/reboot(1) to describe why a shutdown/reboot takes place
Summary: RFE: Option for poweroff(1)/reboot(1) to describe why a shutdown/reboot takes...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.3
Hardware: x86_64
OS: Linux
high
low
Target Milestone: rc
: ---
Assignee: Jan Synacek
QA Contact: qe-baseos-daemons
Maxim Svistunov
URL:
Whiteboard:
: 1022191 (view as bug list)
Depends On:
Blocks: 1203710 1298243 1313485 74systemd 1393867
TreeView+ depends on / blocked
 
Reported: 2015-08-26 14:54 UTC by nyelle@redhat.com
Modified: 2020-04-15 14:15 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Release Note
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-24 13:29:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description nyelle@redhat.com 2015-08-26 14:54:12 UTC
Description of problem:
Even this might sound very strange, I would like to see an option for 
poweroff(1)/reboot(1) to describe why a shutdown/reboot takes place,
similar like the Microsoft Windows shutdown event tracker. When doing
server maintenance on production systems, I treat it as helpful to know
at a later point when scrolling through the logs why a reboot happened.

Upstream link: https://github.com/systemd/systemd/pull/1029/files

I could imagine something like this:

  reboot -m "Security update of kernel"

Or:

  poweroff -m "Replacement of defunct NIC"

So the goal would be to have this message finally logged in systemd's
journal (or /var/log/messages). I don't know if it makes sense to even
introduce predefined groups (which autofill -m), but my personal needs
would be satisfied with above. I indeed could call logger(1) or so, but
it would be nice to have it along with the command that I run anyway.

Version-Release number of selected component (if applicable):
systemd-208-20.el7_1.5.x86_64

Actual results:
No option for poweroff(1)/reboot(1) to describe why a shutdown/reboot
takes place.

Expected results:
Option for poweroff(1)/reboot(1) to describe why a shutdown/reboot takes
place.

Comment 6 Lukáš Nykrýn 2016-01-12 15:12:02 UTC
*** Bug 1022191 has been marked as a duplicate of this bug. ***

Comment 13 Jan Synacek 2016-07-12 12:33:31 UTC
Already upstream (see https://github.com/systemd/systemd/commit/9ef15026c0e7e6600372056c43442c99ec53746e + related commits later).

For RHEL-7, the backport would need a lot more additional testing.

Comment 16 Jan Synacek 2017-01-24 13:29:54 UTC
I just realized that backporting is not possible, because, in RHEL7, we still use systemd-shutdownd... Unless there's a strong business reason, we will not re-implement the functionality in RHEL7.


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