From 96e505e4b7635412739ed39710bcc13cf14aedf5 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Sat, 20 Dec 2014 19:58:54 -0500 Subject: [PATCH] MDEV-7319 : Galera bootstrap (/etc/init.d/mysql bootstrap) returns code 0 on failure Modified init script to return with proper exit status for bootstrap command. [Based on Kenny Rasschaert's suggestion] --- support-files/mysql.server.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh index 577146f62d8..122a28aa576 100644 --- a/support-files/mysql.server.sh +++ b/support-files/mysql.server.sh @@ -445,8 +445,9 @@ case "$mode" in 'bootstrap') # Bootstrap the cluster, start the first node # that initiate the cluster - echo $echo_n "Bootstrapping the cluster" + echo $echo_n "Bootstrapping the cluster.. " $0 start $other_args --wsrep-new-cluster + exit $? ;; *) # usage