mariadb/support-files/use_galera_new_cluster.conf
Daniel Black 75bcf1f9ad MDEV-12646: systemd service file changes from Fedora
Include comment header that describes overrides.

Unit description now includes @VERSION@.

After=syslog.target removed - redunant

Add --basedir=@prefix to prevent /root/.my.cnf lookups. This is
placed after $MYSQLD_OPTIONS in case a user sets a --{no,}default
type options which has to be first in the mysqld arguements.

Additional changes to multi instance (support-files/mariadb@.service.in):
* added @SYSTEMD_EXECSTARTPRE@ / @SYSTEMD_EXECSTARTPOST@
* removed mariadb@bootstrap reference as galera_new_cluster as
  it's a little too proment.
* use_galera_new_cluster.conf updated to override pre/post steps
  to ensure it has no side effects

Signed-off-by: Daniel Black <daniel@linux.vnet.ibm.com>
2019-09-20 08:59:18 +03:00

25 lines
563 B
Text

#
# Install as /etc/systemd/system/mariadb@bootstrap.service.d/use_galera_new_cluster.conf
#
# MariaDB uses /usr/bin/galera_new_cluster
#
# This is here to help guide people that may have used Percona mysql@bootstrap
# to the correct implementation.
[Unit]
ConditionPathExists=
[Service]
Type=oneshot
Restart=no
ExecStartPre=
# Override the multi instance service for a bootstrap start instance
ExecStart=
ExecStart=/usr/bin/echo "Please use galera_new_cluster to start the mariadb service with --wsrep-new-cluster"
ExecStart=/usr/bin/false
ExecStartPost=