mysql: explicit specify --pid-file in rc script

This commit is contained in:
Juergen Daubert 2015-10-07 11:51:46 +02:00
parent 924566bb0a
commit d5a403e76a
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
1622e62c80d128f1951a12c0125d3fb5 my.cnf
7754df40bb5567b03b041ccb6b5ddffa mysql-5.6.27.tar.gz
5ce1297ee84c95df59260707f0ec44c3 mysqld
4f3967b521f810a0a9d7daa9c81bc85d mysqld

View File

@ -8,10 +8,11 @@ PROG=/usr/sbin/mysqld
MYSQL_CFG=/etc/my.cnf
PID=/var/run/mysql/mysqld.pid
LOG=/var/log/mysqld.log
OPTS="--pid-file=$PID"
case $1 in
start)
$SSD --start -bC --pidfile $PID --exec $PROG >> $LOG 2>&1
$SSD --start -bC --pidfile $PID --exec $PROG -- $OPTS >> $LOG 2>&1
;;
stop)
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID