diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2015-10-15 15:38:45 +0200 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-11-02 23:37:03 -0500 |
commit | a2c3549404cbdc55aaaa8537739853d7369aa79a (patch) | |
tree | ebfe09c518850bed19795bcc79636310947e62b1 /scripts/galera_new_cluster.sh | |
parent | 7877438f3152bb2bdc17ed6cdea94838fdd47be0 (diff) | |
download | mariadb-git-a2c3549404cbdc55aaaa8537739853d7369aa79a.tar.gz |
MDEV-427: systemd - use galera_new_cluster instead of bootstrap
Use galera_new_cluster instead. systemctl start mariadb@bootstrap
will generate error message, use_galera_new_cluster.conf is the name
of the file that will generate this error.
Output:
Job for mariadb@bootstrap.service failed. See "systemctl status
mariadb@bootstrap.service" and "journalctl -xe" for details.
● mariadb@bootstrap.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb@.service; disabled;
vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/mariadb@bootstrap.service.d
└─use_galera_new_cluster.conf
Active: failed (Result: exit-code) since Thu 2015-10-15 19:27:52
CEST; 5s ago
Process: 24334 ExecStart=/usr/bin/false (code=exited,
status=1/FAILURE)
Process: 24330 ExecStart=/usr/bin/echo Please use galera_new_cluster
to start the mariadb service with --wsrep-new-cluster (code=exited,
status=0/SUCCESS)
Main PID: 24334 (code=exited, status=1/FAILURE)
Oct 15 19:27:52 spaceman systemd[1]: Starting MariaDB database server...
Oct 15 19:27:52 spaceman systemd[1]: mariadb@bootstrap.service: main
process exited, code=exited, status=1/FAILURE
Oct 15 19:27:52 spaceman systemd[1]: Failed to start MariaDB database
server.
Oct 15 19:27:52 spaceman systemd[1]: Unit mariadb@bootstrap.service
entered failed state.
Oct 15 19:27:52 spaceman systemd[1]: mariadb@bootstrap.service failed.
Diffstat (limited to 'scripts/galera_new_cluster.sh')
-rwxr-xr-x | scripts/galera_new_cluster.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/galera_new_cluster.sh b/scripts/galera_new_cluster.sh new file mode 100755 index 00000000000..0720116020d --- /dev/null +++ b/scripts/galera_new_cluster.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@" +COMPILATION_COMMENT="@COMPILATION_COMMENT@" + +/usr/bin/systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \ + /usr/bin/systemctl start {1:-mariadb@service} + +/usr/bin/systemctl set-environment _WSREP_NEW_CLUSTER='' |