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

Systemd fails to start mysqld in multi-instance mode

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1.14
    • 10.1.15
    • Scripts & Clients
    • None
    • 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

              nirbhay_c Nirbhay Choubey (Inactive)
              nirbhay_c Nirbhay Choubey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.