Skip to content
Permalink
Browse files
Return code from starting MariaDB.
- When bootstraping the galera cluster it's good to get correct return
  values from the (failed) execution.
  • Loading branch information
HeMan committed Aug 24, 2018
1 parent 6c6ca90 commit ff5a482
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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

0 comments on commit ff5a482

Please sign in to comment.