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

Fix glitches with systemd sysusers and tmpfiles

Details

    Description

      Fix glitches with systemd sysusers and tmpfiles:

      Subject: [PATCH 1/2] Use descriptive file names for sysusers and tmpfiles configuration
       
      These files were installed to:
       
      ${INSTALL_SYSTEMD_SYSUSERSDIR}/sysusers.conf
      ${INSTALL_SYSTEMD_TMPFILESDIR}/tmpfiles.conf
       
      Instead rename the files to more descriptive file names 'mariadb.conf'.
      

      Subject: [PATCH 2/2] Make systemd-tmpfiles create MYSQL_DATADIR
       
      This is a no-op if the directory exists, but makes sure it is created by
      systemd-tmpfiles with proper permissions otherwise.
       
      This solves packaging issues when the user MYSQLD_USER is created by
      systemd-sysusers and uid is not known in advance.
      

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment -

            Note; PR ignored for 6 months so far.

            danblack Daniel Black added a comment - Note; PR ignored for 6 months so far.

            yes, somehow it didn't make to MDEV back then. But now it's in Jira, so should get some attention soon

            serg Sergei Golubchik added a comment - yes, somehow it didn't make to MDEV back then. But now it's in Jira, so should get some attention soon

            overdue PR

            serg Sergei Golubchik added a comment - overdue PR
            axel Axel Schwenke added a comment -

            This PR needs further discussion.

            axel Axel Schwenke added a comment - This PR needs further discussion.

            This patch has implications on all systems using systemd, Redhat and Debian alike.

            The data-directory is not a volatile file, according to tmpfiles documentation. In this case we can not use tmpfiles for creating it. This is why the second patch was rejected. The problem should be solved in a post-install script in some form, not through tmpfiles.

            The first patch however makes both file names agree with the systemd-sysusers and systemd-tmpfiles naming convention. This was accepted.

            cvicentiu Vicențiu Ciorbaru added a comment - This patch has implications on all systems using systemd, Redhat and Debian alike. The data-directory is not a volatile file, according to tmpfiles documentation. In this case we can not use tmpfiles for creating it. This is why the second patch was rejected. The problem should be solved in a post-install script in some form, not through tmpfiles. The first patch however makes both file names agree with the systemd-sysusers and systemd-tmpfiles naming convention. This was accepted.

            People

              cvicentiu Vicențiu Ciorbaru
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.