[oe-commits] Frans Meulenbroeks : mysql: changed postinstall: pid file goes to /var/run/ mysql i.s.o /var/run as mysqld cannot write to /var/run

git version control git at git.openembedded.org
Wed Nov 4 15:39:59 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: bfb8287d876eb66fd1254b1c86309e9092c978a3
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bfb8287d876eb66fd1254b1c86309e9092c978a3

Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date:   Wed Nov  4 16:33:43 2009 +0100

mysql: changed postinstall: pid file goes to /var/run/mysql i.s.o /var/run as mysqld cannot write to /var/run
this alo changes /etc/my.cnf

---

 recipes/mysql/files/my.cnf    |    2 +-
 recipes/mysql/mysql_4.1.22.bb |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/recipes/mysql/files/my.cnf b/recipes/mysql/files/my.cnf
index 15a8b1b..46f5316 100644
--- a/recipes/mysql/files/my.cnf
+++ b/recipes/mysql/files/my.cnf
@@ -10,7 +10,7 @@ err-log						= /var/log/mysql.err
 user 						= mysql
 port 						= 3306
 socket 						= /tmp/mysql.sock
-pid-file 					= /var/run/mysqld.pid
+pid-file 					= /var/run/mysql/mysqld.pid
 log-error 					= /var/log/mysqld.err
 basedir 					= /usr
 datadir 					= /var/mysql
diff --git a/recipes/mysql/mysql_4.1.22.bb b/recipes/mysql/mysql_4.1.22.bb
index b6718cb..dae1dd6 100644
--- a/recipes/mysql/mysql_4.1.22.bb
+++ b/recipes/mysql/mysql_4.1.22.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.mysql.com/"
 SECTION = "libs"
 LICENSE = "GPL"
 DEPENDS = "ncurses"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "http://downloads.mysql.com/archives/mysql-4.1/mysql-${PV}.tar.gz \
            file://autofoo.patch;patch=1 \
@@ -63,7 +63,8 @@ pkg_postinst_mysql-server () {
 	#Install the database
 	test -d /usr/bin || mkdir -p /usr/bin
 	test -e /usr/bin/hostname || ln -s /bin/hostname /usr/bin/hostname
-	chmod go+rw /var/run
+	mkdir /var/run/mysql
+	chown mysql.nogroup /var/run/mysql
 
 	mysql_install_db
 
@@ -74,6 +75,7 @@ pkg_postrm_mysql-server () {
 }
 
 PACKAGES = "${PN}-dbg ${PN} libmysqlclient libmysqlclient-dev mysql-client mysql-server ${PN}-leftovers"
+CONFFILES_mysql-server = "${sysconfdir}/my.cnf"
 
 FILES_${PN} = " "
 RDEPENDS_${PN} = "mysql-client mysql-server"





More information about the Openembedded-commits mailing list