From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] mariadb: make it be able to work with SELinux
Date: Fri, 06 Feb 2015 09:41:49 +0100 [thread overview]
Message-ID: <mb1uod$cqu$1@ger.gmane.org> (raw)
In-Reply-To: <1423202386-4040-1-git-send-email-rongqing.li@windriver.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
rongqing.li@windriver.com schreef op 06-02-15 om 06:59:
> From: Roy Li <rongqing.li@windriver.com>
>
> 1. change the datadir from /var/mysql to /var/lib/mysql 2. after creating
> datedir, restorecon on it, make SELinux be able to work 3. Add the
> PIDFile for systemd unit file, otherwise systemctl can not stop mysqld
Shouldn't those all use the ${localstatedir} variable instead of hardcoding?
>
> Signed-off-by: Roy Li <rongqing.li@windriver.com> ---
> meta-oe/recipes-support/mysql/mariadb.inc | 1 +
> meta-oe/recipes-support/mysql/mariadb/my.cnf | 2 +-
> meta-oe/recipes-support/mysql/mariadb/mysqld.service | 1 + 3 files
> changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-support/mysql/mariadb.inc
> b/meta-oe/recipes-support/mysql/mariadb.inc index 8068862..f385bfc
> 100644 --- a/meta-oe/recipes-support/mysql/mariadb.inc +++
> b/meta-oe/recipes-support/mysql/mariadb.inc @@ -128,6 +128,7 @@
> pkg_postinst_${PN}-server () {
>
> mysql_install_db --basedir=${prefix} --user=mysql
>
> + [ -x /sbin/restorecon ] && /sbin/restorecon -RF /var/lib/mysql }
>
> PACKAGES = "${PN}-dbg ${PN} \ diff --git
> a/meta-oe/recipes-support/mysql/mariadb/my.cnf
> b/meta-oe/recipes-support/mysql/mariadb/my.cnf index 876ce36..28d3899
> 100644 --- a/meta-oe/recipes-support/mysql/mariadb/my.cnf +++
> b/meta-oe/recipes-support/mysql/mariadb/my.cnf @@ -13,7 +13,7 @@ socket
> = /var/lib/mysql/mysql.sock pid-file = /var/lib/mysql/mysqld.pid
> log-error = /var/log/mysqld.err basedir = /usr -datadir =
> /var/mysql +datadir = /var/lib/mysql skip-external-locking
> skip-networking ignore-builtin-innodb diff --git
> a/meta-oe/recipes-support/mysql/mariadb/mysqld.service
> b/meta-oe/recipes-support/mysql/mariadb/mysqld.service index
> 18ad8d5..757d038 100644 ---
> a/meta-oe/recipes-support/mysql/mariadb/mysqld.service +++
> b/meta-oe/recipes-support/mysql/mariadb/mysqld.service @@ -4,6 +4,7 @@
> After=syslog.target After=network.target
>
> [Service] +PIDFile=/var/lib/mysql/mysqld.pid Type=simple User=mysql
> Group=mysql
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFU1H5NMkyGM64RGpERAiEDAJ9sJEaiGqhauXo0DJD2+cgMPshg8wCgsfHO
DBiU69t3NR66pAvdQyNlh/Y=
=KiCJ
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2015-02-06 8:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-06 5:59 [PATCH] mariadb: make it be able to work with SELinux rongqing.li
2015-02-06 8:41 ` Koen Kooi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='mb1uod$cqu$1@ger.gmane.org' \
--to=koen@dominion.thruhere.net \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox