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.
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