CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
ports
/
opt-arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mysql: updated to 5.6.28
[ports/opt-arm.git]
/
mysql
/
mysqld
diff --git
a/mysql/mysqld
b/mysql/mysqld
index eb9b74e06e23020e1f6094737e8285ea300a48d7..8df06b24f1142dbc9bf7703e97fd263e503c51e7 100644
(file)
--- a/
mysql/mysqld
+++ b/
mysql/mysqld
@@
-6,13
+6,12
@@
SSD=/sbin/start-stop-daemon
PROG=/usr/sbin/mysqld
MYSQL_CFG=/etc/my.cnf
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)
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
;;
stop)
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID