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:
parent
7ec67eec2a
commit
19377e5b7f
@ -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
|
||||
|
@ -18,3 +18,5 @@ if [ ! -e ${MYSQL_INITIALIZED} ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
os-svc-enable -n mysql
|
||||
|
Loading…
Reference in New Issue
Block a user