From 19377e5b7f42e5d63d9139001d4bf38240a6d317 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Wed, 13 Aug 2014 11:46:17 -0400 Subject: [PATCH] mariadb: call os-svc-enable When configuring Mariadb we should always auto-start the Mariadb (or mysql) daemon on startup. This prevents breaking simple use cases like rebooting nodes, etc. This patch updates the mariadb-rpm element to autostart mariadb. The mariadb element is also updated to autostart 'mysql' (which is the service name that element uses instead). Change-Id: I02ccead89ce5054557a7037cbf127cbe6e75425b --- .../os-refresh-config/configure.d/52-mariadb-rpm-init | 2 ++ elements/mariadb/os-refresh-config/configure.d/52-mariadb-init | 2 ++ 2 files changed, 4 insertions(+) diff --git a/elements/mariadb-rpm/os-refresh-config/configure.d/52-mariadb-rpm-init b/elements/mariadb-rpm/os-refresh-config/configure.d/52-mariadb-rpm-init index 43f191221..c33ff1f16 100755 --- a/elements/mariadb-rpm/os-refresh-config/configure.d/52-mariadb-rpm-init +++ b/elements/mariadb-rpm/os-refresh-config/configure.d/52-mariadb-rpm-init @@ -33,3 +33,5 @@ if [ ! -e ${MYSQL_INITIALIZED} ]; then # We did db initialization by hand so reset-db doesnt need to interfere touch ${MYSQL_INITIALIZED} fi + +os-svc-enable -n mariadb diff --git a/elements/mariadb/os-refresh-config/configure.d/52-mariadb-init b/elements/mariadb/os-refresh-config/configure.d/52-mariadb-init index cec9a351d..14257f587 100755 --- a/elements/mariadb/os-refresh-config/configure.d/52-mariadb-init +++ b/elements/mariadb/os-refresh-config/configure.d/52-mariadb-init @@ -18,3 +18,5 @@ if [ ! -e ${MYSQL_INITIALIZED} ]; then exit 1 fi fi + +os-svc-enable -n mysql