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