CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
mysql: minor structural changes
authorVictor Martinez <pitillo@ono.com>
Tue, 7 Jul 2015 08:12:01 +0000 (10:12 +0200)
committerVictor Martinez <pitillo@ono.com>
Tue, 7 Jul 2015 08:12:01 +0000 (10:12 +0200)
mysql/.footprint
mysql/.md5sum
mysql/Pkgfile
mysql/my.cnf
mysql/mysqld

index 14b184089dd9f2d906c6105c8ff9cd485b912150..be38058fdf93b4956be08a7126438a1711a7a1fe 100644 (file)
@@ -254,4 +254,6 @@ drwxr-xr-x  root/root       var/
 drwxr-xr-x     root/root       var/lib/
 drwx------     mysql/mysql     var/lib/mysql/
 drwxr-xr-x     root/root       var/log/
--rw-------     mysql/mysql     var/log/mysqld.log (EMPTY)
+drwx------     mysql/mysql     var/log/mysql/
+drwxr-xr-x     root/root       var/run/
+drwx------     mysql/mysql     var/run/mysql/
index 3a0e42b1e5e6d977c931e8bed9dc749b64edf540..c0a4a6b29428fd6f3395d354ae061030fe1126fa 100644 (file)
@@ -1,4 +1,4 @@
-0bf963dec6788c90f82ab7b104b8f427  my.cnf
+1622e62c80d128f1951a12c0125d3fb5  my.cnf
 37664399c91021abe070faa700ecd0ed  mysql-5.6.25.tar.gz
-464c23eafb83d93f24d2a04415db2202  mysqld
+5ce1297ee84c95df59260707f0ec44c3  mysqld
 53b421ec605c7d3c437daf10e70e9498  valist.patch
index 66971f9f7e59cc5da41fde074e8d2be00389c19f..d45ec9c2c5c67197acda54800a64d70a9387e6bf 100644 (file)
@@ -6,7 +6,7 @@
 
 name=mysql
 version=5.6.25
-release=1
+release=2
 source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/$name-$version.tar.gz \
         my.cnf mysqld valist.patch)
 
@@ -37,10 +37,7 @@ build () {
   rm $PKG/usr/share/mysql/charsets/README
   find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
 
-  install -d  $PKG/var/{lib,log}
-  touch mysqld.log
-  install -m 600 -o mysql -g mysql mysqld.log $PKG/var/log
-  install -d -m 700 -o mysql -g mysql $PKG/var/lib/mysql
+  install -d -m 700 -o mysql -g mysql $PKG/var/{lib,log,run}/mysql
   install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
   install -m 600 $SRC/my.cnf $PKG/etc
 }
index db6f0d3cd751aed8d29073c186ad19cc91c4b543..e8854b5d22880e6b75a51311b7d167eba4d33808 100644 (file)
@@ -5,11 +5,11 @@
 [mysqld]
 datadir          = /var/lib/mysql
 user             = mysql
-pid-file         = /var/run/mysqld.pid
+pid-file         = /var/run/mysql/mysqld.pid
 socket           = /tmp/mysql.sock
 port             = 3306
-general_log      = 1
-general_log_file = /var/log/mysqld.log
+#general_log      = 1
+#general_log_file = /var/log/mysql/general.log
 
 skip-networking
 skip-innodb
index eb9b74e06e23020e1f6094737e8285ea300a48d7..8df06b24f1142dbc9bf7703e97fd263e503c51e7 100644 (file)
@@ -6,13 +6,12 @@
 SSD=/sbin/start-stop-daemon
 PROG=/usr/sbin/mysqld
 MYSQL_CFG=/etc/my.cnf
-PID=$(sed -n 's/^pid-file[ \t]*=[ \t]*//p' $MYSQL_CFG)
-USR=$(sed -n 's/^user[ \t]*=[ \t]*//p' $MYSQL_CFG)
+PID=/var/run/mysql/mysqld.pid
+LOG=/var/log/mysqld.log
 
 case $1 in
 start)
-       touch $PID && chown $USR:$USR $PID
-       $SSD --start --background --pidfile $PID --exec $PROG
+       $SSD --start -bC --pidfile $PID --exec $PROG >> $LOG 2>&1
        ;;
 stop)
        $SSD --stop --remove-pidfile --retry 10 --pidfile $PID