Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-19706

RPM no longer installs init script on systemd systems, but preun script still tries to erase it

    Details

      Description

      After the fix for MDEV-10797, RPMs no longer install the init script on systems that use systemd. However, the RPM preun script still tries to erase the init script. See here:

      https://github.com/MariaDB/server/blob/mariadb-10.4.5/support-files/rpm/server-preun.sh#L12

      This leads to the following problem:

      $ rpm -e MariaDB-server
      error: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64) scriptlet failed, exit status 1
      error: MariaDB-server-10.4.5-1.el7.centos.x86_64: erase failed
      

      More verbose output shows:

      + '[' -x /sbin/chkconfig ']'
      + /sbin/chkconfig --del mysql
      D: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64): waitpid(3107) rc 3107 status 100
      error: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64) scriptlet failed, exit status 1
      error: MariaDB-server-10.4.5-1.el7.centos.x86_64: erase failed
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                GeoffMontee Geoff Montee
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: