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

    XMLWordPrintable

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

              serg Sergei Golubchik
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.