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

use environment file in systemd units for _WSREP_*

    XMLWordPrintable

Details

    Description

      We used to run systemctl set-environment to pass _WSREP_START_POSITION. This is bad because:

      • it clutter systemd's environment (yes, pid 1) - upsets some Debian people dbz 984996
      • it requires root privileges - hence it will fix MDEV-14707, as such it cases all ExecStartPre scripts to be run as root. PermissionsStartOnly was deprecated by systemd in 2018.
      • options (like LimitNOFILE=) are not applied to ExecStartPre scripts.

      The solution is:

      Let's just create an environment file in ExecStartPre=, that is read before ExecStart= kicks in. We have _WSREP_START_POSITION around for the main process without any downsides.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anel Anel Husakovic
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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