X-Git-Url: http://gitweb/?a=blobdiff_plain;f=mysql%2Fmysqld;h=8df06b24f1142dbc9bf7703e97fd263e503c51e7;hb=4f5be4d11b4a98b4186bf908bc7f5ae2fc92baad;hp=eb9b74e06e23020e1f6094737e8285ea300a48d7;hpb=199f2d02e83263076bcf3cca183c01556e22b596;p=ports%2Fopt-arm.git diff --git a/mysql/mysqld b/mysql/mysqld index eb9b74e..8df06b2 100644 --- a/mysql/mysqld +++ b/mysql/mysqld @@ -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