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

Leapp upgrade process leaves logrotate HUP-ing the wrong pid file of rsyslog

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-7.9
    • leapp-repository
    • None
    • No
    • None
    • rhel-upgrades
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • All
    • None

      When a system is upgraded from RHEL 7 to 8 the default pid file of rsyslog changes from /var/run/syslogd.pid to /var/run/rsyslogd.pid , presumably because the default file of rsyslog is changed. This causes logrotate to fail HUP-ing it as it looks for the pid in the wrong location

      In /etc/logrotate.d/syslog :

      /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true

              leapp-notifications leapp-notifications
              nik.ivanov Nikola Ivanov (Inactive)
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: