wok diff mariadb/stuff/etc/init.d/mysql @ rev 16681
Create some /var/run/<dir> in /etc/init.d/<daemon> scritps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 18 20:24:07 2014 +0000 (2014-05-18) |
parents | d4a8ce10c154 |
children | 7f188676b59c |
line diff
1.1 --- a/mariadb/stuff/etc/init.d/mysql Wed Jun 20 15:35:34 2012 +0200 1.2 +++ b/mariadb/stuff/etc/init.d/mysql Sun May 18 20:24:07 2014 +0000 1.3 @@ -15,6 +15,10 @@ 1.4 PIDFILE=/var/run/mysqld/mysql.pid 1.5 [ -n "$OPTIONS" ] || OPTIONS="--pid-file=$PIDFILE --datadir=/var/lib/mysql --user=mysql --socket=/var/run/mysqld/mysqld.sock" 1.6 1.7 +if [ ! -d /var/lib/mysql ]; then 1.8 + mkdir -p /var/lib/mysql 1.9 + chown mysql.mysql /var/lib/mysql 1.10 +fi 1.11 case "$1" in 1.12 start) 1.13 if active_pidfile $PIDFILE mysqld ; then