[Commits] 2a2b6dd: MDEV-10145: Systemd fails to start mysqld in multi-instance mode

Nirbhay Choubey nirbhay at mariadb.com
Fri May 27 23:42:15 EEST 2016


revision-id: 2a2b6dd7c41e58b097a8ae278ce8682d99094a94 (mariadb-10.1.14-4-g2a2b6dd)
parent(s): 9a1c4e900b98fdb9940aab57c895753f175c2bd8
author: Nirbhay Choubey
committer: Nirbhay Choubey
timestamp: 2016-05-27 16:42:15 -0400
message:

MDEV-10145: Systemd fails to start mysqld in multi-instance mode

--defaults-xxx options must be placed before all other
options in the command line. Also moved MYSQLD_OPTS at
the end so that its options take precedence.

---
 support-files/mariadb at .service.in | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/support-files/mariadb at .service.in b/support-files/mariadb at .service.in
index fb3b4b5..ff87b66 100644
--- a/support-files/mariadb at .service.in
+++ b/support-files/mariadb at .service.in
@@ -64,11 +64,15 @@ PermissionsStartOnly=true
 # This isn't a replacement for my.cnf.
 # _WSREP_NEW_CLUSTER is for the exclusive use of the script galera_new_cluster
 
-ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER --defaults-file=@INSTALL_SYSCONF2DIR@/my%I.cnf
+# Note: Place $MYSQLD_OPTS at the very end for its options to take precedence.
+
+ExecStart=/usr/sbin/mysqld --defaults-file=@INSTALL_SYSCONF2DIR@/my%I.cnf \
+  $_WSREP_NEW_CLUSTER $MYSQLD_OPTS
 # Alternate: (remove ConditionPathExists above)
 # use [mysqld.INSTANCENAME] as sections in my.cnf
 #
-# ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS --defaults-group-suffix=%I
+# ExecStart=/usr/sbin/mysqld --defaults-group-suffix=%I \
+# $_WSREP_NEW_CLUSTER $MYSQLD_OPTS
 
 KillMode=process
 KillSignal=SIGTERM


More information about the commits mailing list