summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJimmy Hedman <jimmy.hedman@gmail.com>2018-08-24 10:43:27 +0200
committerJimmy Hedman <jimmy.hedman@gmail.com>2018-08-24 10:46:50 +0200
commitff5a482d9c3f0572e95df9541e3f5f41b427c8f2 (patch)
treea7f354c4b86e73f0907491834ed628f71883fd4a /scripts
parent6c6ca907ee84e3f129bc33be8202c0fee2f29196 (diff)
downloadmariadb-git-ff5a482d9c3f0572e95df9541e3f5f41b427c8f2.tar.gz
Return code from starting MariaDB.
- When bootstraping the galera cluster it's good to get correct return values from the (failed) execution.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/galera_new_cluster.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/galera_new_cluster.sh b/scripts/galera_new_cluster.sh
index 8bf2fa35cec..e4e2ac39b52 100755
--- a/scripts/galera_new_cluster.sh
+++ b/scripts/galera_new_cluster.sh
@@ -27,4 +27,8 @@ COMPILATION_COMMENT="@COMPILATION_COMMENT@"
systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \
systemctl start ${1:-mariadb}
+extcode=$?
+
systemctl set-environment _WSREP_NEW_CLUSTER=''
+
+return $extcode