From 4c19227929b0d86616337585fb95a4bb8fe0d4b2 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 12 Dec 2017 11:24:39 +1100 Subject: [PATCH] systemd: mariadb@bootstrap - clear ExecStartPre and ExecStartPost This is just to make sure no ExecStartPre/Post actions from the multi-instance MariaDB service definition are executed when a user attempts to start mariadb@bootstrap. Fixes: 3723c70a3045 --- support-files/use_galera_new_cluster.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/support-files/use_galera_new_cluster.conf b/support-files/use_galera_new_cluster.conf index 90e0365ffd8..79d191094d4 100644 --- a/support-files/use_galera_new_cluster.conf +++ b/support-files/use_galera_new_cluster.conf @@ -15,8 +15,13 @@ ConditionPathExists= Type=oneshot Restart=no +# Don't install or try to prepare for galera SST. +ExecStartPre= + # Override the multi instance service for a bootstrap start instance ExecStart= ExecStart=/usr/bin/echo "Please use galera_new_cluster to start the mariadb service with --wsrep-new-cluster" ExecStart=/usr/bin/false +# This isn't a service meant to execute anything but a message +ExecStartPost=