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

Systemd fails to start mysqld in multi-instance mode

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.14
    • Fix Version/s: 10.1.15
    • Component/s: Scripts & Clients
    • Labels:
      None
    • Environment:
      systemd

      Description

      The multi-instance version of systemd has the following lines which incorrectly place
      defaults options after other options.

      ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER --defaults-file=@INSTALL_SYSCONF2DIR@/my%I.cnf
      # Alternate: (remove ConditionPathExists above)
      # use [mysqld.INSTANCENAME] as sections in my.cnf
      #
      # ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS --defaults-group-suffix=%I
      

      How to repeat:

      • sudo systemctl set-environment MYSQLD_OPTS="--general_log=1"
      • sudo systemctl start mariadb@_node1

      May 27 10:08:54 debian-jessie-amd64 mysqld[3611]: 2016-05-27 10:08:54 140556653737920 [ERROR] /usr/sbin/mysqld: unknown variable 'defaults-file=/etc/mysql/conf.d/my_node1.cnf'
      May 27 10:08:54 debian-jessie-amd64 mysqld[3611]: 2016-05-27 10:08:54 140556653737920 [ERROR] Aborting
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nirbhay_c Nirbhay Choubey
                Reporter:
                nirbhay_c Nirbhay Choubey
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: