xref: /freebsd/sys/contrib/openzfs/etc/systemd/system/zfs-import-cache.service.in (revision a0409676120c1e558d0ade943019934e0f15118d)
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
11ConditionFileNotEmpty=@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