7a7e4c
--- mariadb-10.4.14/support-files/CMakeLists.txt	2020-08-06 17:28:28.000000000 +0200
7a7e4c
+++ mariadb-10.4.14/support-files/CMakeLists.txt_patched	2020-09-03 13:21:07.826658279 +0200
7a7e4c
@@ -187,6 +187,7 @@ IF(UNIX)
7a7e4c
               COMPONENT SharedLibraries)
7a7e4c
       INSTALL(FILES rpm/mysql-clients.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
7a7e4c
               COMPONENT Client)
7a7e4c
+      CONFIGURE_FILE(rpm/server.cnf ${CMAKE_CURRENT_SOURCE_DIR}/rpm/server.cnf @ONLY)
7a7e4c
       INSTALL(FILES rpm/server.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
7a7e4c
               COMPONENT IniFiles)
7a7e4c
       INSTALL(FILES rpm/enable_encryption.preset DESTINATION ${INSTALL_SYSCONF2DIR}
7a7e4c
7a7e4c
diff -up mariadb-10.0.15/support-files/rpm/server.cnf.ownsetup mariadb-10.0.15/support-files/rpm/server.cnf
7a7e4c
--- mariadb-10.0.15/support-files/rpm/server.cnf.ownsetup	2015-01-24 23:55:55.110063592 +0100
7a7e4c
+++ mariadb-10.0.15/support-files/rpm/server.cnf	2015-01-24 23:57:42.308114387 +0100
7a7e4c
@@ -9,7 +9,16 @@
7a7e4c
 [server]
7a7e4c
 
7a7e4c
 # this is only for the mysqld standalone daemon
7a7e4c
+# Settings user and group are ignored when systemd is used.
7a7e4c
+# If you need to run mysqld under a different user or group,
7a7e4c
+# customize your systemd unit file for mysqld/mariadb according to the
7a7e4c
+# instructions in http://fedoraproject.org/wiki/Systemd
7a7e4c
 [mysqld]
7a7e4c
+datadir=@MYSQL_DATADIR@
7a7e4c
+socket=@MYSQL_UNIX_ADDR@
7a7e4c
+log-error=@LOG_LOCATION@
7a7e4c
+pid-file=@PID_FILE_DIR@/@DAEMON_NO_PREFIX@.pid
7a7e4c
+
7a7e4c
 
7a7e4c
 #
7a7e4c
 # * Galera-related settings