xref: /freebsd/sys/contrib/openzfs/etc/systemd/system/zfs-import-cache.service.in (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1[Unit]
2Description=Import ZFS pools by cache file
3Documentation=man:zpool(8)
4DefaultDependencies=no
5Requires=systemd-udev-settle.service
6After=systemd-udev-settle.service
7After=cryptsetup.target
8After=multipathd.target
9After=systemd-remount-fs.service
10Before=zfs-import.target
11ConditionPathExists=@sysconfdir@/zfs/zpool.cache
12ConditionPathIsDirectory=/sys/module/zfs
13
14[Service]
15Type=oneshot
16RemainAfterExit=yes
17ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN
18
19[Install]
20WantedBy=zfs-import.target
21