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!