Skip to content

Commit

Permalink
MDEV-9007: systemd - service mariadb bootstrap
Browse files Browse the repository at this point in the history
Now this error out and refers to galera_new_cluster.
  • Loading branch information
grooverdan authored and Nirbhay Choubey committed Nov 3, 2015
1 parent a2c3549 commit d8ecc2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion support-files/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ IF(UNIX)
IF(HAVE_SYSTEMD)
CONFIGURE_FILE(mariadb.service.in
${CMAKE_CURRENT_BINARY_DIR}/mariadb.service @ONLY)
IF(CMAKE_VERSION VERSION_LESS 3.3.0)
IF(NOT RPM)
CONFIGURE_FILE(mariadb@.service.in
${CMAKE_CURRENT_BINARY_DIR}/mariadb@.service @ONLY)
INSTALL(FILES use_galera_new_cluster.conf
Expand Down
1 change: 0 additions & 1 deletion support-files/mariadb@.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ PermissionsStartOnly=true
# This isn't a replacement for my.cnf.
# _WSREP_NEW_CLUSTER is for the exclusive use of the script galera_new_cluster

ExecStart=
ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER --defaults-file=@INSTALL_SYSCONF2DIR@/my%I.cnf
# Alternate: (remove ConditionPathExists above)
# use [mysqld.INSTANCENAME] as sections in my.cnf
Expand Down
4 changes: 4 additions & 0 deletions support-files/mysql.server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ case "$mode" in
exit $r
;;
'bootstrap')
if test "$_use_systemctl" == 1 ; then
log_failure_msg "Please use galera_new_cluster to start the mariadb service with --wsrep-new-cluster"
exit 1
fi
# Bootstrap the cluster, start the first node
# that initiate the cluster
echo $echo_n "Bootstrapping the cluster.. "
Expand Down

0 comments on commit d8ecc2a

Please sign in to comment.