summaryrefslogtreecommitdiff
path: root/sys-fs/zfs-utils/files/zfs.service.in
blob: ae2eff170a72c1aacc1ecf27448fdb9b6e968e4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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