Commit ff5a482d authored by Jimmy Hedman's avatar Jimmy Hedman

Return code from starting MariaDB.

- When bootstraping the galera cluster it's good to get correct return
  values from the (failed) execution.
parent 6c6ca907
...@@ -27,4 +27,8 @@ COMPILATION_COMMENT="@COMPILATION_COMMENT@" ...@@ -27,4 +27,8 @@ COMPILATION_COMMENT="@COMPILATION_COMMENT@"
systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \ systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \
systemctl start ${1:-mariadb} systemctl start ${1:-mariadb}
extcode=$?
systemctl set-environment _WSREP_NEW_CLUSTER='' systemctl set-environment _WSREP_NEW_CLUSTER=''
return $extcode
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment