[zfs-discuss] Startup Daemon launches before ZFS has mounted.

Иван Крутских stein.hak at gmail.com
Sat May 25 20:59:46 EDT 2013

Every init.d script has a priority launch header. My mysql on zfs partition

# Provides:       mysql
# Required-Start: $network $remote_fs zfs
# Required-Stop: $network $remote_fs
# Default-Start:  3 5
# Default-Stop:
# Short-Description: Start the MySQL database server
# Description:    Start the MySQL database server

Just edit your /etc/init.d/minecraft-server-something script the same way.

Other startup managers use similar approach.

2013/5/26 Lance <lancethepants at gmail.com>

> Hi, kind of a noobish question.
> I'm using zfsonlinux on a brand new installation of Debian Wheezy x64
> installed on a small ssd.  I've setup up various zfs file systems, included
> one which is mounted as /opt.  I've setup a minecraft server in /opt. as I
> would like to use zfs to make backups and such.  I've set "ZFS_MOUNT='yes'
> "  in /etc/default/zfs to automount at boot. ( I don't know if there's a
> better alternative for Debian).
> This issue I think I have, is that zfs hasn't mounted by the time the
> Minecraft Server starts, which results in it failing to start.  I can later
> start it manually without issue after logging after boot.
> I've also removed the zfs /opt mount, copied it's contents over to the
> ssd, which then results in Minecraft being able to start successfully on
> boot, weeding out issues with the Minecraft server itself.
> 1. Is there a better way to have zfs automount at boot?, or
> 2. Is there a graceful way to tell the minecraft init script  to delay
> starting until zfs has completely mounted?
> thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20130526/72d431f5/attachment.html>

More information about the zfs-discuss mailing list