xref: /freebsd-src/sys/contrib/openzfs/etc/systemd/system/zfs-import-scan.service.in (revision bb2d13b686e3ccf6c3ccb36209dfb7dcc108b182)
1eda14cbcSMatt Macy[Unit]
2eda14cbcSMatt MacyDescription=Import ZFS pools by device scanning
3eda14cbcSMatt MacyDocumentation=man:zpool(8)
4eda14cbcSMatt MacyDefaultDependencies=no
5eda14cbcSMatt MacyRequires=systemd-udev-settle.service
6eda14cbcSMatt MacyAfter=systemd-udev-settle.service
7eda14cbcSMatt MacyAfter=cryptsetup.target
8*bb2d13b6SMartin MatuskaAfter=multipathd.service
9eda14cbcSMatt MacyBefore=zfs-import.target
10184c1b94SMartin MatuskaConditionFileNotEmpty=!@sysconfdir@/zfs/zpool.cache
11eda14cbcSMatt MacyConditionPathIsDirectory=/sys/module/zfs
12eda14cbcSMatt Macy
13eda14cbcSMatt Macy[Service]
14eda14cbcSMatt MacyType=oneshot
15eda14cbcSMatt MacyRemainAfterExit=yes
16c03c5b1cSMartin MatuskaEnvironmentFile=-@initconfdir@/zfs
170d8fe237SMartin MatuskaExecStart=@sbindir@/zpool import -aN -o cachefile=none $ZPOOL_IMPORT_OPTS
18eda14cbcSMatt Macy
19eda14cbcSMatt Macy[Install]
20eda14cbcSMatt MacyWantedBy=zfs-import.target
21