mariadb/cmake
Daniel Black 3723c70a30 MDEV-426: systemd PermissionsStartOnly=true by default
mariadb-service-convert during migration can create a file containing
ExecStartPre=/usr/sbin/sysctl -q -w vm.drop_caches=3 if the users my.cnf
contains [mysqld_safe] flush_caches. This sysctl entry change requires root
access. No existing ExecStartPre requires execution requires execution
as another user.

There is a comment in the mariadb{,@}.service.in that indicates
mysqld_install which would require -u mysql to explicity change user to
mysql from root since PermissionsStartOnly=true.

Otherwise the following error would be generated:
Oct 14 07:38:38 spaceman systemd[1]: Starting MariaDB database server...
-- Subject: Unit mariadb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mariadb.service has begun starting up.
Oct 14 07:38:38 spaceman sysctl[10089]: sysctl: permission denied on key 'vm.drop_caches'
Oct 14 07:38:38 spaceman systemd[1]: mariadb.service: control process exited, code=exited status=255
Oct 14 07:38:38 spaceman systemd[1]: Failed to start MariaDB database server.
2015-10-14 12:45:59 +02:00
..
build_configurations Merge branch '10.0' into merge-wip 2015-01-31 21:48:47 +01:00
os Merge branch '10.0' into 10.1 2015-10-12 00:37:58 +02:00
abi_check.cmake Merge tag 'mariadb-10.0.20' into 10.1 2015-06-27 20:35:26 +02:00
bison.cmake Updated/added copyright headers 2011-06-30 17:46:53 +02:00
bzip2.cmake MDEV-6633: Remove magic dependencies for InnoDB compression methods 2015-02-04 19:31:16 +02:00
cat.cmake Updated/added copyright headers 2011-06-30 17:46:53 +02:00
character_sets.cmake Merging utf16le from MySQL-5.6 2013-03-28 17:19:09 +04:00
check_compiler_flag.cmake cmake: always use the same function to test for compiler flags 2015-09-04 10:32:02 +02:00
check_minimal_version.cmake Updated/added copyright headers 2011-06-30 17:46:53 +02:00
cmake_parse_arguments.cmake Updated/added copyright headers 2011-06-30 17:46:53 +02:00
compile_flags.cmake Bug#20344207: Add support for CMake 3.1 2015-01-15 09:55:01 +01:00
configurable_file_content.in Updated/added copyright headers 2011-06-30 17:46:53 +02:00
configure.pl Don't enable file_key_management_plugin by default (as this gives warnings in the log) 2015-10-09 13:02:55 +03:00
cpack_deb.cmake simplify CMakeLists.txt for cassandra/connect engines 2013-09-25 19:32:14 +02:00
cpack_rpm.cmake Fixed Fedora 22 package build failure. 2015-10-12 17:51:50 +02:00
cpack_source_ignore_files.cmake Merge branch '10.0' into 10.1 2015-03-07 13:21:02 +01:00
CPackRPM.cmake RPM: 2014-02-19 21:40:20 +01:00
cpu_info.cmake Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
create_initial_db.cmake.in 10.0-base merge 2013-06-06 21:32:29 +02:00
ctest.cmake unit test fixes for ctest 2011-07-16 09:09:01 +02:00
do_abi_check.cmake MDEV-8052 abi detection incorrect with clang 2015-06-03 09:54:56 +02:00
dtrace.cmake mysql-5.5.39 merge 2014-08-02 21:26:16 +02:00
dtrace_prelink.cmake Updated/added copyright headers 2011-06-30 17:46:53 +02:00
for_clients.cmake Merge branch '10.0' into bb-10.1-merge 2014-12-02 22:25:16 +01:00
info_bin.cmake Fix bug#42969 Please add a MANIFEST to each build 2011-02-11 15:55:25 +01:00
info_macros.cmake.in Merge branch '10.0' into 10.1 2015-03-07 13:21:02 +01:00
info_src.cmake Bug#20136840 REMOVE REMAINING REFERENCES TO BZR IN CMAKE SCRIPTS 2014-12-11 12:46:04 +01:00
install_layout.cmake MDEV-427/MDEV-5713 Add systemd script with notify functionality 2015-10-12 17:51:49 +02:00
install_macros.cmake Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
jemalloc.cmake MDEV-6895 switch to dynamic libjemalloc.so 2014-12-04 10:41:52 +01:00
libutils.cmake MDEV-7398 mysqld segfaults on FreeBSD 10.1 i386 when built with clang 3.4 2015-06-16 23:58:21 +02:00
lz4.cmake MDEV-6633: Remove magic dependencies for InnoDB compression methods 2015-02-04 19:31:16 +02:00
lzma.cmake MDEV-6633: Remove magic dependencies for InnoDB compression methods 2015-02-04 19:31:16 +02:00
lzo.cmake MDEV-6633: Remove magic dependencies for InnoDB compression methods 2015-02-04 19:31:16 +02:00
maintainer.cmake cmake: always use the same function to test for compiler flags 2015-09-04 10:32:02 +02:00
make_dist.cmake.in Merge tag 'mysql-5.5.44' into bb-5.5-serg 2015-06-05 02:06:51 +02:00
merge_archives_unix.cmake.in Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mysql_add_executable.cmake CRLF->LF 2015-06-02 22:07:47 +02:00
mysql_version.cmake MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
package_name.cmake MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
pcre.cmake MDEV-5620 CMake option to compile against an external PCRE library 2014-03-04 01:22:53 +01:00
plugin.cmake Merge branch '5.5' into 10.0 2015-02-18 15:16:27 +01:00
readline.cmake Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
snappy.cmake Merged from 10.0-FusionIO: 2015-02-19 17:42:18 +02:00
ssl.cmake cmake: don't repeat yourself 2015-09-04 10:32:02 +02:00
stack_direction.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
systemd.cmake MDEV-426: systemd PermissionsStartOnly=true by default 2015-10-14 12:45:59 +02:00
tags.cmake Committing on behalf of Valdislav Vaintroub (reviewed and 2010-05-14 18:42:10 +04:00
versioninfo.rc.in CRLF->LF 2015-06-02 22:07:47 +02:00
wsrep.cmake MDEV-7067: Server outputs Galera (WSREP) information, even if Galera is disabled 2015-05-29 11:26:46 -04:00
zlib.cmake 10.0-base merge 2014-02-26 15:28:07 +01:00