mirror of
https://github.com/MariaDB/server.git
synced 2025-12-04 17:23:46 +03:00
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>
26 lines
563 B
Plaintext
26 lines
563 B
Plaintext
#
|
|
# 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=
|