CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
firefox: updated to 44.0.1
[ports/opt-arm.git] / mysql / mysqld
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