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
This commit is contained in:
Dan Prince 2014-08-13 11:46:17 -04:00
parent 7ec67eec2a
commit 19377e5b7f
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -18,3 +18,5 @@ if [ ! -e ${MYSQL_INITIALIZED} ]; then
exit 1
fi
fi
os-svc-enable -n mysql