service mysql stop does not work on Ubuntu 14.04

Bug #1329216 reported by shinguz
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
New
Undecided
Unassigned

Bug Description

When we install mysql-server-wsrep-5.6.16-25.5-amd64.deb on Ubuntu 14.04 start works but not shutdown.
We found that package is not prepared for upstart yet.
File /etc/init/mysql.conf is missing (see mysql-server-5.6 package)
so it falls back to /etc/init.d/mysql which does not work correctly:

root@ubuntu1404tpl:~# /etc/init.d/mysql stop
 * Stopping MySQL database server mysqld [ OK ]
--> This is wrong!!!

See trace and ps later:

root@ubuntu1404tpl:~# bash -x /etc/init.d/mysql stop
+ set -e
+ set -u
+ test -x /usr/sbin/mysqld
+ . /lib/lsb/init-functions
+++ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
++ '[' -r /lib/lsb/init-functions.d/20-left-info-blocks ']'
++ . /lib/lsb/init-functions.d/20-left-info-blocks
++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
++ '[' -r /lib/lsb/init-functions.d/50-ubuntu-logging ']'
++ . /lib/lsb/init-functions.d/50-ubuntu-logging
+++ LOG_DAEMON_MSG=
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+++ dirname /etc/init.d/mysql
++ cd /etc/init.d
++ pwd -P
++ basename /etc/init.d/mysql
+ SELF=/etc/init.d/mysql
+ CONF=/etc/mysql/my.cnf
+ ERR_LOGGER='logger -p daemon.err -t /etc/init.d/mysql -i'
+ cd /
+ umask 077
+ export HOME=/etc/mysql/
+ HOME=/etc/mysql/
++ mysqld_get_param datadir
++ cut -d= -f2
++ tail -n 1
++ grep -- --datadir
++ tr ' ' '\n'
++ /usr/sbin/mysqld --print-defaults
+ datadir=/var/lib/mysql
+ '[' -z /var/lib/mysql ']'
++ mysqld_get_param pid-file
++ cut -d= -f2
++ tail -n 1
++ grep -- --pid-file
++ tr ' ' '\n'
++ /usr/sbin/mysqld --print-defaults
+ pidfile=
+ '[' -z '' ']'
++ hostname
+ pidfile=/var/lib/mysql/ubuntu1404tpl.pid
+ cmd=stop
+ '[' 1 -ge 1 ']'
+ shift
+ other_args=
+ case "$cmd" in
+ log_daemon_msg 'Stopping MySQL database server' mysqld
+ '[' -z 'Stopping MySQL database server' ']'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xxterm '!=' x ']'
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z ']'
+ FANCYTTY=1
+ case "$FANCYTTY" in
+ true
+ /usr/bin/tput xenl
++ /usr/bin/tput cols
+ COLS=266
+ '[' 266 ']'
+ '[' 266 -gt 6 ']'
++ /usr/bin/expr 266 - 7
+ COL=259
+ log_use_plymouth
+ '[' n = y ']'
+ plymouth --ping
+ printf ' * Stopping MySQL database server mysqld '
 * Stopping MySQL database server mysqld ++ /usr/bin/expr 266 - 1
+ /usr/bin/tput hpa 265
                                                                                                                                                                                                                                                                         + printf ' '
 + mysqld_status check_dead nowarn
+ ps_alive=0
+ '[' -f /var/lib/mysql/ubuntu1404tpl.pid ']'
+ '[' check_dead = check_alive -a 0 = 1 ']'
+ '[' check_dead = check_dead -a 0 = 0 ']'
+ return 0
+ mysqld_status check_dead warn
+ ps_alive=0
+ '[' -f /var/lib/mysql/ubuntu1404tpl.pid ']'
+ '[' check_dead = check_alive -a 0 = 1 ']'
+ '[' check_dead = check_dead -a 0 = 0 ']'
+ return 0
+ log_end_msg 0
+ '[' -z 0 ']'
+ '[' 259 ']'
+ '[' -x /usr/bin/tput ']'
+ log_use_plymouth
+ '[' n = y ']'
+ plymouth --ping
+ printf '\r'
+ /usr/bin/tput hpa 259
                                                                                                                                                                                                                                                                   + '[' 0 -eq 0 ']'
+ echo '[ OK ]'
[ OK ]
+ return 0

root@ubuntu1404tpl:~# ps -ef | grep mysql
root 6461 1 0 09:58 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql 6847 6461 0 09:58 pts/0 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/lib/mysql/ubuntu1404tpl.err --open-files-limit=65535 --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306 --wsrep_start_position=00000000-0000-0000-0000-000000000000:-1
root 7558 1216 0 10:05 pts/0 00:00:00 grep --color=auto mysql

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.