#768951 mysql-server: missing soft dependency in init file

Package:
mysql-server
Source:
mysql-8.0
Description:
MySQL database server and system database setup
Submitter:
Vadim Kutchin
Date:
2014-11-10 11:15:12 UTC
Severity:
important
#768951#5
Date:
2014-11-10 09:59:10 UTC
From:
To:
Dear Maintainer,
I use zfs (in particullary zfsutils package from http://archive.zfsonlinux.org/debian wheezy main repository) as a storage to mysql datafiles.
Mount point is default mysql location, /var/lib/mysql. All mysql data files are located on zfs filesystem, which must be mount on system boot.
But on my system mysql started before zfs because of no dependency mysql of zfs:

Zfs mount script from zfsutils package have this init information (part of file) in its /etc/init/zfs-mount file:
# Provides:       zvol zfs zfs-mount
# Required-Start: $local_fs
# Required-Stop:
# X-Stop-After:   umountfs

And mysql start script from mysql-server-5.5 package have this init information (also part of file) in its /etc/init.d/mysql file:
# Provides:          mysql
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $network $time
# Should-Stop:       $network $time

So, after each reboot i must stop mysql, mount zfs and start mysql again by hand.

As of Should-Start parameter in init script satisfy dependency only if it present on system, it will be no harmful to add there zfs-mount dependency:
# Should-Start:      $network $time $zfs-mount

Can you add this dependency on next release?
Thanks a lot!