mysql: explicit specify --pid-file in rc script
This commit is contained in:
parent
924566bb0a
commit
d5a403e76a
@ -1,3 +1,3 @@
|
||||
1622e62c80d128f1951a12c0125d3fb5 my.cnf
|
||||
7754df40bb5567b03b041ccb6b5ddffa mysql-5.6.27.tar.gz
|
||||
5ce1297ee84c95df59260707f0ec44c3 mysqld
|
||||
4f3967b521f810a0a9d7daa9c81bc85d mysqld
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user