I looked at the mysql-5.6 package in the xenial distribution.

It provides 3 init scripts: one for upstart, one for SysV init, and one
presumably for systemd.  Each provides a different value for the server
to shutdown: 10 seconds, 300 seconds or 600 seconds, depending on which
service you use. 

I did see a better syntax for waiting 30 seconds using Bash, though.

Before:

>             for i in 1 2 3 4 5 6 7 8 9 10; do
>               sleep 1

After:

>           for i in $(seq 1 300); do
>               sleep 1

That's my recommended patch to /etc/init.d/mysql

I also recommend fixing the mysql-server 5.6 package to be consistent
between the 3 init scripts. 

    Mark

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1521771

Title:
  init.d.mysql shutdown timeout value does not match init/mysql.conf
  value

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/1521771/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to