2 # Copyright 1999-2010 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-fuse/files/zfs-fuse,v 1.1 2010/06/22 20:13:43 ssuominen Exp $
11 PIDFILE="/var/run/zfs/zfs-fuse.pid"
12 EXEFILE="/usr/sbin/zfs-fuse"
19 ebegin "Starting ZFS-FUSE"
20 checksystem || return 1
21 start-stop-daemon --start --exec ${EXEFILE} \
22 --user root --group disk -- --pidfile ${PIDFILE}
26 if [[ $rv -eq 0 ]]; then
27 ebegin "Mounting ZFS filesystems"
34 ebegin "Unmounting ZFS filesystems"
41 ebegin "Stopping ZFS-FUSE"
42 checksystem || return 2
43 start-stop-daemon --stop --pidfile ${PIDFILE} \
44 --exec ${EXEFILE} --retry TERM/1/TERM/2/TERM/4/TERM/8/KILL