diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-09-25 14:57:56 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-09-25 14:57:56 -0400 |
commit | 4d33f9dca027e1f66f9898146533e8c1d612f2d1 (patch) | |
tree | 71c604ccf0a15f7d22ab19cda9f11833adedcb17 /debian | |
parent | eac8e43541afdbc60b7e6c954d310db9b37db2d5 (diff) | |
parent | 13615c5e18eed62fa2dee80402dfebe3e74053c4 (diff) | |
download | mariadb-git-4d33f9dca027e1f66f9898146533e8c1d612f2d1.tar.gz |
Merge branch '5.5-galera' into 10.0-galera
Diffstat (limited to 'debian')
-rw-r--r-- | debian/mariadb-galera-server-10.0.mysql.init | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/debian/mariadb-galera-server-10.0.mysql.init b/debian/mariadb-galera-server-10.0.mysql.init index 46911aa57a1..a59013f8047 100644 --- a/debian/mariadb-galera-server-10.0.mysql.init +++ b/debian/mariadb-galera-server-10.0.mysql.init @@ -17,6 +17,9 @@ set -e set -u ${DEBIAN_SCRIPT_DEBUG:+ set -v -x} +# Prevent Debian's init scripts from calling systemctl +_SYSTEMCTL_SKIP_REDIRECT=true + test -x /usr/sbin/mysqld || exit 0 . /lib/lsb/init-functions @@ -179,8 +182,15 @@ case "${1:-''}" in fi ;; + 'bootstrap') + # Bootstrap the cluster, start the first node + # that initiates the cluster + log_daemon_msg "Bootstrapping the cluster" "mysqld" + $SELF start "${@:2}" --wsrep-new-cluster + ;; + *) - echo "Usage: $SELF start|stop|restart|reload|force-reload|status" + echo "Usage: $SELF start|stop|restart|reload|force-reload|status|bootstrap" exit 1 ;; esac |