Verify zfs module loaded before starting services
Extend the change made in ae12b02
to verify the zfs kernel
modules are loaded to the rest of the OpenZFS services. If
the modules aren't loaded the neither the share, volume, or
and zed services can be started.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11243
This commit is contained in:
parent
16692e6ba0
commit
b2a54a28b5
@ -8,6 +8,7 @@ Wants=zfs-mount.service
|
||||
After=zfs-mount.service
|
||||
PartOf=nfs-server.service nfs-kernel-server.service
|
||||
PartOf=smb.service
|
||||
ConditionPathIsDirectory=/sys/module/zfs
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
@ -3,6 +3,7 @@ Description=Wait for ZFS Volume (zvol) links in /dev
|
||||
DefaultDependencies=no
|
||||
After=systemd-udev-settle.service
|
||||
After=zfs-import.target
|
||||
ConditionPathIsDirectory=/sys/module/zfs
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=ZFS Event Daemon (zed)
|
||||
Documentation=man:zed(8)
|
||||
ConditionPathIsDirectory=/sys/module/zfs
|
||||
|
||||
[Service]
|
||||
ExecStart=@sbindir@/zed -F
|
||||
|
Loading…
Reference in New Issue
Block a user