zfs revision 168410
1168410Spjd#!/bin/sh 2168410Spjd# 3168410Spjd# $FreeBSD: head/etc/rc.d/zfs 168410 2007-04-06 02:27:02Z pjd $ 4168410Spjd# 5168410Spjd 6168410Spjd# PROVIDE: zfs 7168410Spjd# REQUIRE: mountcritlocal 8168410Spjd# KEYWORD: nojail shutdown 9168410Spjd 10168410Spjd. /etc/rc.subr 11168410Spjd 12168410Spjdname="zfs" 13168410Spjdrcvar="zfs_enable" 14168410Spjdstart_cmd="zfs_start" 15168410Spjdstop_cmd="zfs_stop" 16168410Spjdrequired_modules="zfs" 17168410Spjd 18168410Spjdzfs_start() 19168410Spjd{ 20168410Spjd zfs mount -a 21168410Spjd zfs volinit 22168410Spjd zfs share -a 23168410Spjd} 24168410Spjd 25168410Spjdzfs_stop() 26168410Spjd{ 27168410Spjd zfs unshare -a 28168410Spjd zfs volfini 29168410Spjd zfs unmount -a 30168410Spjd} 31168410Spjd 32168410Spjdload_rc_config $name 33168410Spjdrun_rc_command "$1" 34