mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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.
This commit is contained in:
parent
2768829e53
commit
0645699060
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue