[main]
@type = oneshot
@version = @vers@
@description = "Import ZFS pools by cache file"
@options = ( !log )
@user = ( root )

[start]
@execute =
(
    if { 66-yeller -cdp devices-zfs-import-cache -1 /dev/console starts... }
    if -nt {

        execl-cmdline -s { zpool import -c ${conf_dir}/${conf_file} ${cmd_args} }

    }
    66-yeller -fcdp devices-zfs-import-cache -1 /dev/console crashed!
)

[environment]
conf_dir=!/etc/zfs
conf_file=!zpool.cache
cmd_args=!-aN
