Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-2857

Backport support for RebootKey in systemd-logind

    • Icon: Story Story
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhel-8.10
    • CentOS Stream 8
    • systemd
    • None
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 26
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • All
    • None

      Sometimes servers may have a bogus key presses due some, out of scope, powers - like dust or humidity. And we can ignore "power key presses" via HandlePowerKey=ignore in logind.conf

      Sep 11 16:50:04 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 16:50:05 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 16:50:05 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 16:50:05 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 16:50:05 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 16:50:05 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:48 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:48 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:48 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:48 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:48 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:48 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:49 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:49 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:50 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:50 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:50 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:52 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:52 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:53 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:53 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:54 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:54 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:54 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:54 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:55 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:55 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:55 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:55 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:56 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:56 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:56 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:57 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:57 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:57 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:58 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:58 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:01:58 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:00 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:00 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:01 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:01 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:01 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:01 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:03 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:05 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:05 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      Sep 11 17:02:05 infra1.opentech.local systemd-logind[133411]: Power key pressed.
      

      But, if the signal comes from Reboot Key - the server will be rebooted. Current version of systemd (systemd-239-78.el8) support only the PowerKey, not the RebootKey 

      Please, backport the Reboot Key support to handle this situation. The Reboot Key support was added in systemd/systemd#16664

              lnykryn@redhat.com Lukáš Nykrýn
              k0ste Konstantin Shalygin (Inactive)
              systemd maint mailing list
              Lukáš Nykrýn Lukáš Nykrýn
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: