diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-09-25 10:14:33 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-09-25 10:14:33 +0300 |
commit | d3350c160a7a884e97a5e4a696432230c13d53e0 (patch) | |
tree | f7f5c35737b4c87dcfac73f7547d0d2321276be9 /support-files | |
parent | a39c4b5f9f7f4d2766f1ddb9487de27259e804a1 (diff) | |
parent | b6bb64e54a3e34a20cda34e25b6ec62a097955ef (diff) | |
download | mariadb-git-d3350c160a7a884e97a5e4a696432230c13d53e0.tar.gz |
Merge 10.3 into 10.4
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/mariadb.service.in | 4 | ||||
-rw-r--r-- | support-files/mariadb@.service.in | 10 | ||||
-rw-r--r-- | support-files/mysql-log-rotate.sh | 10 |
3 files changed, 10 insertions, 14 deletions
diff --git a/support-files/mariadb.service.in b/support-files/mariadb.service.in index b1371fafa71..8d2e57b8290 100644 --- a/support-files/mariadb.service.in +++ b/support-files/mariadb.service.in @@ -91,9 +91,7 @@ ExecStartPre=/bin/sh -c "[ ! -e @bindir@/galera_recovery ] && VAR= || \ # Use the [Service] section and Environment="MYSQLD_OPTS=...". # This isn't a replacement for my.cnf. # _WSREP_NEW_CLUSTER is for the exclusive use of the script galera_new_cluster -# Note: we set --basedir to prevent probes that might trigger SELinux alarms, -# per bug https://bugzilla.redhat.com/show_bug.cgi?id=547485 -ExecStart=@sbindir@/mysqld $MYSQLD_OPTS --basedir=@prefix@ $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION +ExecStart=@sbindir@/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION # Unset _WSREP_START_POSITION environment variable. ExecStartPost=/bin/sh -c "systemctl unset-environment _WSREP_START_POSITION" diff --git a/support-files/mariadb@.service.in b/support-files/mariadb@.service.in index c66f5a776eb..4a49bd48766 100644 --- a/support-files/mariadb@.service.in +++ b/support-files/mariadb@.service.in @@ -244,12 +244,10 @@ UMask=007 PrivateTmp=false # Controlling how multiple instances are separated. See top of this file. -# Note 1: This service isn't User=mysql by default so we need to be explicit. -# Note 2: we set --basedir to prevent probes that might trigger SELinux alarms, -# per bug https://bugzilla.redhat.com/show_bug.cgi?id=547485. Its as an option -# here as a user may want to use the MYSQLD_MULTI_INSTANCE to run multiple -# versions. -Environment='MYSQLD_MULTI_INSTANCE=--defaults-group-suffix=.%I --basedir=@prefix@' +# Note: This service isn't User=mysql by default so we need to be explicit. +# It is as an option here as a user may want to use the MYSQLD_MULTI_INSTANCE +# to run multiple versions. +Environment='MYSQLD_MULTI_INSTANCE=--defaults-group-suffix=.%I' # While you can override these, you shouldn't leave them empty as that # will default to root. diff --git a/support-files/mysql-log-rotate.sh b/support-files/mysql-log-rotate.sh index 5d1b30b208e..293229d8482 100644 --- a/support-files/mysql-log-rotate.sh +++ b/support-files/mysql-log-rotate.sh @@ -1,9 +1,9 @@ # This logname can be set in /etc/my.cnf -# by setting the variable "err-log" -# in the [safe_mysqld] section as follows: +# by setting the variable "log-error" +# in the [mysqld] section as follows: # -# [safe_mysqld] -# err-log=@localstatedir@/mysqld.log +# [mysqld] +# log-error=@localstatedir@/mysqld.log # # If the root user has a password you have to create a # /root/.my.cnf configuration file with the following @@ -21,7 +21,7 @@ @localstatedir@/mysqld.log { # create 600 mysql mysql notifempty - daily + daily rotate 3 missingok compress |