[mariadb] Move server settings to config file under my.cnf.d dir
Honza Horak
hhorak at fedoraproject.org
Sat Jan 24 23:05:02 UTC 2015
commit b2ee179e9b5fc414d72b60e9340ddfd28a414a73
Author: Honza Horak <hhorak at redhat.com>
Date: Sun Jan 25 00:00:50 2015 +0100
Move server settings to config file under my.cnf.d dir
mariadb-ownsetup.patch | 20 ++++++++++++++++++++
mariadb.spec | 7 ++++++-
my.cnf.in | 29 +++++++++--------------------
3 files changed, 35 insertions(+), 21 deletions(-)
---
diff --git a/mariadb-ownsetup.patch b/mariadb-ownsetup.patch
new file mode 100644
index 0000000..491a3a5
--- /dev/null
+++ b/mariadb-ownsetup.patch
@@ -0,0 +1,20 @@
+diff -up mariadb-10.0.15/support-files/rpm/server.cnf.ownsetup mariadb-10.0.15/support-files/rpm/server.cnf
+--- mariadb-10.0.15/support-files/rpm/server.cnf.ownsetup 2015-01-24 23:55:55.110063592 +0100
++++ mariadb-10.0.15/support-files/rpm/server.cnf 2015-01-24 23:57:42.308114387 +0100
+@@ -9,7 +9,16 @@
+ [server]
+
+ # this is only for the mysqld standalone daemon
++# Settings user and group are ignored when systemd is used.
++# If you need to run mysqld under a different user or group,
++# customize your systemd unit file for mysqld/mariadb according to the
++# instructions in http://fedoraproject.org/wiki/Systemd
+ [mysqld]
++datadir=@MYSQL_DATADIR@
++socket=@DMYSQL_UNIX_ADDR@
++log-error=@LOG_LOCATION@
++pid-file=@PID_FILE_DIR@/@DAEMON_NAME at .pid
++
+
+ # this is only for embedded server
+ [embedded]
diff --git a/mariadb.spec b/mariadb.spec
index f3561d8..708ac2c 100644
--- a/mariadb.spec
+++ b/mariadb.spec
@@ -104,7 +104,7 @@
Name: mariadb
Version: %{compatver}.%{bugfixver}
-Release: 5%{?with_debug:.debug}%{?dist}
+Release: 6%{?with_debug:.debug}%{?dist}
Epoch: 1
Summary: A community developed branch of MySQL
@@ -147,6 +147,7 @@ Patch5: %{pkgnamepatch}-file-contents.patch
Patch6: %{pkgnamepatch}-dh1024.patch
Patch7: %{pkgnamepatch}-scripts.patch
Patch8: %{pkgnamepatch}-install-db-sharedir.patch
+Patch9: %{pkgnamepatch}-ownsetup.patch
# Patches specific for this mysql package
Patch30: %{pkgnamepatch}-errno.patch
@@ -484,6 +485,7 @@ MariaDB is a community developed branch of MySQL.
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%patch9 -p1
%patch30 -p1
%patch31 -p1
%patch32 -p1
@@ -1137,6 +1139,9 @@ fi
%endif
%changelog
+* Sat Jan 24 2015 Honza Horak <hhorak at redhat.com> - 1:10.0.15-6
+- Move server settings to config file under my.cnf.d dir
+
* Sat Jan 24 2015 Honza Horak <hhorak at redhat.com> - 1:10.0.15-5
- Fix path for sysconfig file
Filter provides in el6 properly
diff --git a/my.cnf.in b/my.cnf.in
index eff1259..247e12d 100644
--- a/my.cnf.in
+++ b/my.cnf.in
@@ -1,26 +1,15 @@
+#
+# This group is read both both by the client and the server
+# use it for options that affect everything
+#
+[client-server]
+
+#
+# This group is read by the server
+#
[mysqld]
-datadir=/var/lib/mysql
-socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
-# Settings user and group are ignored when systemd is used.
-# If you need to run mysqld under a different user or group,
-# customize your systemd unit file for mysqld/mariadb according to the
-# instructions in http://fedoraproject.org/wiki/Systemd
-
-# Currently, there are mariadb and community-mysql packages in Fedora.
-# This particular config file is included in respective RPMs of both of them,
-# so the following settings are general and will be also used by both of them.
-# Otherwise the RPMs would be in conflict.
-# Settings for particular implementations like MariaDB are then
-# defined in appropriate sections; for MariaDB server in [mariadb] section in
-# @INSTALL_SYSCONF2DIR@/server.cnf (part of mariadb-server).
-# It doesn't matter that we set these settings only for [mysqld] here,
-# because they will be read and used in mysqld_safe as well.
-log-error=@LOG_LOCATION@
-pid-file=@PID_FILE_DIR@/@DAEMON_NAME at .pid
-
-[mysqld_safe]
#
# include all files from the config directory
More information about the scm-commits
mailing list