From cb47155c68f38c6931fd539a8615373199b4ee64 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Sat, 20 Dec 2014 19:49:04 -0500 Subject: 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(-) (limited to 'support-files') diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh index 19f07dcf2fc..1600cb0f86a 100644 --- a/support-files/mysql.server.sh +++ b/support-files/mysql.server.sh @@ -447,8 +447,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 -- cgit v1.2.1