zfs revision 168410
1#!/bin/sh 2# 3# $FreeBSD: head/etc/rc.d/zfs 168410 2007-04-06 02:27:02Z pjd $ 4# 5 6# PROVIDE: zfs 7# REQUIRE: mountcritlocal 8# KEYWORD: nojail shutdown 9 10. /etc/rc.subr 11 12name="zfs" 13rcvar="zfs_enable" 14start_cmd="zfs_start" 15stop_cmd="zfs_stop" 16required_modules="zfs" 17 18zfs_start() 19{ 20 zfs mount -a 21 zfs volinit 22 zfs share -a 23} 24 25zfs_stop() 26{ 27 zfs unshare -a 28 zfs volfini 29 zfs unmount -a 30} 31 32load_rc_config $name 33run_rc_command "$1" 34