6 # Default-Start: 2 3 4 5
8 # Short-Description: Start/stop ZFS subsystem.
12 PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
14 .
/lib
/lsb
/init-functions
17 [ -f /etc
/default
/zfs
] && .
/etc
/default
/zfs
20 log_begin_msg
"Starting ZFS subsystem..."
21 log_progress_msg
"filesystems"
24 if [ $RET != 0 ] ; then
32 log_begin_msg
"Stopping ZFS subsystem..."
33 log_progress_msg
"filesystems"
36 if [ $RET != 0 ] ; then
45 [ -z "$ZFS_MOUNT" ] && exit 0
48 restart|reload|force-reload
)
49 echo "Error: argument '$1' not supported" >&2
53 [ -z "$ZFS_UNMOUNT" ] && exit 0
57 echo "Usage: zfs [start|stop]" >&2