Debug auto_replace_001_pos failures
[zfs.git] / etc / systemd / system / zfs-import-cache.service.in
blobfd822989da932bb5523ecc99ecaa98d20e9b1b13
1 [Unit]
2 Description=Import ZFS pools by cache file
3 Documentation=man:zpool(8)
4 DefaultDependencies=no
5 Requires=systemd-udev-settle.service
6 After=systemd-udev-settle.service
7 After=cryptsetup.target
8 After=multipathd.service
9 After=systemd-remount-fs.service
10 Before=zfs-import.target
11 ConditionFileNotEmpty=@sysconfdir@/zfs/zpool.cache
12 ConditionPathIsDirectory=/sys/module/zfs
14 [Service]
15 Type=oneshot
16 RemainAfterExit=yes
17 EnvironmentFile=-@initconfdir@/zfs
18 ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN $ZPOOL_IMPORT_OPTS
20 [Install]
21 WantedBy=zfs-import.target