aboutsummaryrefslogtreecommitdiffstats
path: root/etc/init.d/zfs-mount.in
diff options
context:
space:
mode:
authorJames Lee <[email protected]>2015-08-30 14:36:41 -0400
committerBrian Behlendorf <[email protected]>2015-09-02 09:16:39 -0700
commit3f1cc17c9005d19faba91fe7236332ed502b1a3f (patch)
tree3499392a3fe8255ad8dbcb2c3673fbc7a372e312 /etc/init.d/zfs-mount.in
parentfb40095f5f0853946f8150481ca22602d1334dfe (diff)
Reorder zfs-* services to allow /var on separate dataset
ZED depends on /var. When /var is a separate dataset, it must be mounted before starting ZED. This change moves the zfs-zed service from starting first, to starting after zfs-mount, but before zfs-share. As discussed in issue #3513, ZED does not need to start first in order to consume events made during the zfs-import and zfs-mount services. The events will be queued and can be handled later in the boot process. ZED may, however, handle sharing in the future, so it should be started before the zfs-share service. This commit also stops the zfs-import service from writing temp files to /var/tmp on shutdown and it corrects the return code for the OpenRC service. Other OpenRC-specific changes noted in issue #3513 were reitereated in issue #3715 and committed in da619f3. Signed-off-by: James Lee <[email protected]> Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #3513
Diffstat (limited to 'etc/init.d/zfs-mount.in')
-rwxr-xr-xetc/init.d/zfs-mount.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/init.d/zfs-mount.in b/etc/init.d/zfs-mount.in
index cf79b852b..95aefd6d6 100755
--- a/etc/init.d/zfs-mount.in
+++ b/etc/init.d/zfs-mount.in
@@ -16,7 +16,7 @@
# Required-Stop: $local_fs zfs-import
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
-# X-Stop-After: zfs-share
+# X-Stop-After: zfs-zed
# Short-Description: Mount ZFS filesystems and volumes
# Description: Run the `zfs mount -a` or `zfs umount -a` commands.
### END INIT INFO
@@ -57,7 +57,7 @@ do_depend()
# bootmisc will log to /var which may be a different zfs than root.
before bootmisc logger
- after procfs zfs-import sysfs procps
+ after zfs-import sysfs
use mtab
keyword -lxc -openvz -prefix -vserver
}