summaryrefslogtreecommitdiff
path: root/sys-fs/zfs/files/zfs.service.in
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-05 02:33:19 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-05 02:33:19 +0100
commitefff0ec7ac88c43b432d323a4e87b338b121bbac (patch)
treee2f73255fdf185715bcf1fb9724df4a76ff27f8e /sys-fs/zfs/files/zfs.service.in
parent34240e9e9510e79afd9bb0f46ef50586d90218ec (diff)
zfs && spl userland utilities, dkms kernel sources will follow soon
Diffstat (limited to 'sys-fs/zfs/files/zfs.service.in')
-rw-r--r--sys-fs/zfs/files/zfs.service.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-fs/zfs/files/zfs.service.in b/sys-fs/zfs/files/zfs.service.in
new file mode 100644
index 00000000..c390a480
--- /dev/null
+++ b/sys-fs/zfs/files/zfs.service.in
@@ -0,0 +1,16 @@
+[Unit]
+Description=ZFS filesystems setup
+Before=network.target
+After=systemd-udev-settle.target local-fs.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStartPre=/sbin/modprobe zfs
+ExecStartPre=/usr/bin/test -c /dev/zfs
+ExecStart=/usr/libexec/zfs-init.sh
+ExecStop=@sbindir@/zfs umount -a
+
+[Install]
+WantedBy=multi-user.target
+